Function useSetPanelStateById
- useSetPanelStateById<T>(local?: boolean, scope?: string): ((...args: [panelId: string, fn: ((state: any) => any)]) => Promise<void>)
-
Parameters
-
Optional
local: boolean
-
Optional
scope: string
Returns ((...args: [panelId: string, fn: ((state: any) => any)]) => Promise<void>)
-
- (...args: [panelId: string, fn: ((state: any) => any)]): Promise<void>
-
Parameters
-
Rest
...args: [panelId: string, fn: ((state: any) => any)]
Returns Promise<void>
Returns a function that will run the callback that was passed when calling this hook. Useful for accessing Recoil state in response to events.