-
Notifications
You must be signed in to change notification settings - Fork 105
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
Possible to change parameters without a full re-render? #58
Comments
Unfortunately it is not possible to change parameters without a full re-render. A while ago I was thinking about implementing a more complex way of defining particles to be able to add, remove and change particles at runtime without causing a full reload. If taken seriously, this idea would require tackling more challenges, like defining the entity "particle system" which should be capable of orchestrating single particles. Trying to change the behavior of the library for certain parameters only, seems to me like exception-driven development. Let me know what you think about it. |
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. |
@wufe Do you have particle config for this effect (https://www.timeon.space/)? |
@rainstormza the website timeon.space is not powered by the current version of react-particles-js. |
I am using this library to create a dynamic background, and am trying to get it so the color of the particles shifts every few seconds. Currently it seems changing the parameters on the
<Particles />
component causes a full re-render and causes the particles to appear to "jump".I've created a sandbox demo that shows that here
Would it be reasonable to have certain parameters (like color) not cause a full re-render?
I've poked through the code a bit, but was curious if you had an opinion @wufe.
The text was updated successfully, but these errors were encountered: