Creates an atom, which represents a piece of writeable state
Creates a selector which represents derived state.
Returns the value of an atom or selector (readonly or writeable) and
subscribes the components to future updates of that state.
Returns a Loadable representing the status of the given Recoil state
and subscribes the component to future updates of that state. Useful
for working with async selectors.
Returns a tuple where the first element is the value of the recoil state
and the second is a setter to update that state. Subscribes component
to updates of the given state.
Returns a tuple where the first element is a Loadable and the second
element is a setter function to update the given state. Subscribes
component to updates of the given state.
Returns a setter function for updating Recoil state. Does not subscribe
the component to the given state.
Returns a function that will reset the given state to its default value.
Returns current info about an atom
Returns a function that will run the callback that was passed when
calling this hook. Useful for accessing Recoil state in response to
Returns a function that executes an atomic transaction for updating Recoil state.
Updates Recoil state to match the provided snapshot.
Returns a snapshot of the current Recoil state and subscribes the component
to re-render when any state is updated.
Clears the cache for a selector causing it to be reevaluated.
Returns a component that acts like a but shares the same store
as the current .
Returns true if the parameter is a Recoil atom or selector.
Returns a function which returns a memoized atom for each unique parameter value.
Returns a selector that always has a constant value.