Update wax-prosemirror-core/src/Wax.js
Just a quick fix.
Previously the code was mutating defaultPlugins
, which meant that if the component rendered twice, the plugins would be duplicated on second render (and all renders after that) and raise an error in ProseMirror:
RangeError: Adding different instances of a keyed plugin (plugin$)