How Global vs Isolated instances work
masterThe library uses an internal network state manager class. You can interact with it in two ways:
- Global Instance: Uses a singleton instance. This is the easiest way to access network state across your entire app using global functions or the
useNetInfohook. - Isolated Instance: Allows you to create separate, independently configured instances of the network manager. This is useful if you need different configurations for different parts of your application.