web / lib/hooks/use-view-scope
lib/hooks/use-view-scope
Hook to derive a ViewScope from the current view context.
Returns a stable scope object for passing to query hooks, or undefined if no view scope is active.
Functions
useViewScope()
useViewScope():
ViewScope|undefined
Derives a ViewScope from the active view context. Returns undefined if no view is active or scope is “all”.
Returns
ViewScope | undefined
Last updated on