Closed alecdotninja closed 4 years ago
I'm going to close this PR for now. Every use-case that I had in mind can't be addressed by this alone, so I'm not sure what point there is in adding this would a more structured system for effects.
If someone needs this feature, feel free to comment and we can reconsider merging.
This PR adds a configurable marker attribute (
data-motion-permanent
) that can be used to signal to the reconciliation algorithm that a subtree of the DOM should be left alone.This is important for supporting JavaScript libraries that need to modify that DOM and is inspired by the analogous feature in Turbolinks.