component-playground icon indicating copy to clipboard operation
component-playground copied to clipboard

onUpdate prop can be passed to Playground.

Open benwiley4000 opened this issue 7 years ago • 1 comments

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 avatar Aug 13 '18 02:08 benwiley4000

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

benwiley4000 avatar Aug 13 '18 02:08 benwiley4000