createSingleLoading
is a utility function for creating a singleton loading instance, offering a method to manage a single (global) loading state across multiple Hooks or loading instances.
This function internally depends on @shined/react-use
. To keep the dependencies minimal and isolated, you need to import it from /create-single-loading
, and also ensure that @shined/react-use
is installed.