react-wizard-primitive icon indicating copy to clipboard operation
react-wizard-primitive copied to clipboard

Prevent render flicker when using routeTitle

Open berndartmueller opened this issue 4 years ago • 0 comments

Hello,

I gave routeTitle a try to persist the current step in the url to allow reloading the wizard without losing the state. It works really neat!

But.

When navigating to one of the next steps and reloading the browser window, you can notice a flicker while rendering the first step and immediately jumping to the currently active step (determined by the URL hash).

Here's a codesandbox with the replicated behaviour: https://codesandbox.io/s/wizard-custom-abstraction-forked-vx7y2

Is there a way to fix this?

Thanks a lot!

berndartmueller avatar Feb 13 '21 14:02 berndartmueller