Skip to content

Commit

Permalink
🚧 Default step example fix
Browse files Browse the repository at this point in the history
  • Loading branch information
XionWCFM committed Aug 11, 2024
1 parent 93891ce commit 4977b7f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,11 @@ In the case of `prefix` and `qsOptions.addQueryPrefix`, if entered as options in
## Default Step Example

```tsx
const [Funnel, { createStep, step }] = useFunnel(defaultStepFunnelOptions());

useEffect(() => {
if (controller.step === undefined) {
router.replace(`/default-step?${controller.createStep("a")}`);
if (step === undefined) {
router.replace(createStep("a"));
}
}, []);
```
Expand Down

0 comments on commit 4977b7f

Please sign in to comment.