Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

Conversation

benwiley4000
Copy link

New feature: onUpdate prop which gets called after each code update with the new code and an error object if one was caught during preview eval.

Useful for the ComponentPlayground in Spectacle where you may want to develop a piece of code across multiple slides in a presentation. onUpdate lets you hold onto code that was edited in one slide and insert it into a later slide (and optionally avoid holding onto code that generated an error).

@benwiley4000
Copy link
Author

Hm I just realized this isn't even the library used in Spectacle, but whatever, you can still merge this if you want. 🙂

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant