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

Dynamically change of sketch #3

Closed
JordyWittouck opened this issue Feb 14, 2017 · 1 comment
Closed

Dynamically change of sketch #3

JordyWittouck opened this issue Feb 14, 2017 · 1 comment

Comments

@JordyWittouck
Copy link

I tried to change the sketch during a state rerender, but it keeps rendering the initial sketch. Any workarounds to change the sketch after the component has already been mounted?

and-who added a commit that referenced this issue Feb 15, 2017
@and-who
Copy link
Contributor

and-who commented Feb 15, 2017

Hi I updated the Wrapper, now this should be possible.
if you change the Sketch in the Props the p5 Content should be update.

This change you will find in Release 0.0.4
https://github.com/NeroCor/react-p5-wrapper/releases/tag/v0.0.4
Which I just published to npm.

Just update your npm dependency and you should be fine.

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

2 participants