Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI flicker of second step on page load #93

Open
KhalidH82 opened this issue Oct 1, 2021 · 3 comments
Open

UI flicker of second step on page load #93

KhalidH82 opened this issue Oct 1, 2021 · 3 comments

Comments

@KhalidH82
Copy link

I have an issue when my page loads the second step flickers quickly at the bottom. I'm using Next.js and wonder if this may be causing the issue? Thanks in advance for your help!

Image.from.iOS.MOV
@bundit
Copy link
Collaborator

bundit commented Jan 5, 2022

@KhalidH82
Do you have a reproducible codesandbox?

I also recommend trying a next production build and testing there as the dev environment can be flakey

@noahhai
Copy link

noahhai commented Oct 18, 2022

@KhalidH82 I fixed this issue. I cannot remember 100% what my fix was but I think it may have been this:

const Home: NextPage<Props> = (props) => {
    ...
    const [isSSR, setIsSSR] = useState(true);
    
    useEffect(() => {
        setIsSSR(false);
    }, []);

    ...
    return (!isSSR && 
            (
                 <StepWizard
                 .....

@craigwi
Copy link

craigwi commented Dec 18, 2023

I used https://stackoverflow.com/a/57173209/10834037 which has the same effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants