Implements an optimistic caching strategy around a useState-like hook in
order to prevent loss of updates when the hook has an internal delay and the
update function is called again before the updated state is sent out.
Use this as a wrapper around useOperationsEditorState,
useVariablesEditorState, or useHeadersEditorState if you anticipate
calling them with great frequency (due to, for instance, mouse, keyboard, or
network events).
Implements an optimistic caching strategy around a useState-like hook in order to prevent loss of updates when the hook has an internal delay and the update function is called again before the updated state is sent out.
Use this as a wrapper around
useOperationsEditorState,useVariablesEditorState, oruseHeadersEditorStateif you anticipate calling them with great frequency (due to, for instance, mouse, keyboard, or network events).