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

Particles Disappear When Page Is Refreshed #192

Closed
ghost opened this issue Oct 31, 2021 · 6 comments
Closed

Particles Disappear When Page Is Refreshed #192

ghost opened this issue Oct 31, 2021 · 6 comments
Labels

Comments

@ghost
Copy link

ghost commented Oct 31, 2021

If I comment, save, un-comment and save again, my particles component works. But if I refresh the page the particles disappear.

My component looks like this:

<Particles params={particlesConfig} />

@badrkamel
Copy link

If I comment, save, un-comment and save again, my particles component works. But if I refresh the page the particles disappear.

My component looks like this:

<Particles params={particlesConfig} />

same

@devotii
Copy link

devotii commented Dec 1, 2021

I've the same issue

@JackwillJudge
Copy link

has anyone found a fix to this one yet?

@sylwiawajgel
Copy link

sylwiawajgel commented Dec 6, 2021

You can try a workaround and load particles after some time, using setTimeout. It works for me. Not a good solution, but better than nothing, until it will be fixed.

const [showParticles, setShowParticles] = useState(false);
  
  useEffect(() => {
    setTimeout(() => {
      setShowParticles(true);
    }, 500);
  }, []);

  return (
     <>
         {showParticles && (
              <Particles/>
         )}
    </>
  );

@JackwillJudge
Copy link

awesome thanks that worked

@stale
Copy link

stale bot commented Apr 16, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 16, 2022
@stale stale bot closed this as completed Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants