Skip to content
filedom
Esc
↑↓navigate↵open⌘Jpreview
On this page

useStageSession

Reads all values from the enclosing StageProvider.

import { useStageSession } from 'filedom';

const { park, background, iconSize } = useStageSession();

Returns

StageSession: park: StagePoint | null, background: string | null, and iconSize: number | null, from the nearest StageProvider. Values the provider does not have are null, and all three are null without a provider.

Was this page helpful?