You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In many situations what's needed is not to completely override importDOM/exportDOM but to inject some code that runs somewhere in the pipeline, e.g. to add or remove some metadata.
Impact
This will be an enabling feature for NodeState where the state should be serialized to or from the DOM. Currently, only JSON serializations are defined. It would probably make sense to have some sort of default serialization based on data properties, but it doesn't make sense for the serialization of a specific property to require overriding the exportDOM of every class.
The minimal requirement on the export side for something like this would be kind of like a mutation listener, but for export instead of render.
Reacted by piotrlewalski, Alessio Gravili, Rodrigo, Juan Abbona, Alex Kempton and Sergey Gorbachev
Reacted by German Jablonski, Georgii Dolzhykov, Can Rau, Rithesh, Alessio Gravili, Kim Joar Bekkelund, Rodrigo, Juan Abbona and Sergey Gorbachev
Activity