Returns a setter function for updating the value of writeable Recoil state.
Returns a setter function which can be used asynchronously to change the state. The setter may either be passed a new value or an updater function which receives the previous value as an argument.
This is the recommended hook to use when a component intends to write to state without reading it. If a component used the
useRecoilState() hook to get the setter, it would also subscribe to updates and re-render when the atom or selector updated. Using
useSetRecoilState() allows a component to set the value without re-rendering when the value changes.