useBlock is the best approach for this use-case?
I have a 1 page SPA.
From the url, the user always, come with queryParameters example internetPlanId=1&mobilePlanId=4
In the UI we populate selections based on those parameters.
Then, the user needs to fill out the form, do some selections more and submit an order. If order success, we push the user to the /confirmation page.
I need users to prevent from going to /confirmation even if they come first to the root with params /mobilePlanId=4.
Should I use useBlocker or is there any other better approach?
From the url, the user always, come with queryParameters example internetPlanId=1&mobilePlanId=4
In the UI we populate selections based on those parameters.
Then, the user needs to fill out the form, do some selections more and submit an order. If order success, we push the user to the /confirmation page.
I need users to prevent from going to /confirmation even if they come first to the root with params /mobilePlanId=4.
Should I use useBlocker or is there any other better approach?