MCPcopy Create free account
hub / github.com/devrnt/react-use-wizard / useWizard

Function useWizard

src/useWizard.ts:6–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import WizardContext from './wizardContext';
5
6const useWizard = () => {
7 const context = React.useContext(WizardContext);
8
9 if (!context && __DEV__) {
10 throw Error('Wrap your step with `Wizard`');
11 } else {
12 return context as WizardValues;
13 }
14};
15
16export default useWizard;

Callers 12

renderUseWizardHookFunction · 0.90
useWizard.test.tsxFile · 0.90
StepFunction · 0.85
index.jsFile · 0.85
StepFunction · 0.85
index.jsFile · 0.85
LazyQueryStepFunction · 0.85
step.tsxFile · 0.85
animatedStep.tsxFile · 0.85
asyncStep.tsxFile · 0.85
FooterFunction · 0.85
FooterGoToStepIndexFunction · 0.85

Calls

no outgoing calls

Tested by 1

renderUseWizardHookFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…