The key to use in local storage. This should be unique to the item.
A function that checks if the item is of the correct type. This is used to prevent crashes from invalid items in local storage.
The default value to use if the item is not found in local storage.
Generated using TypeDoc
Hook that retrieves an item safely from local storage, also allowing setting the item and removing it.