Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parameter for specifying what to do with elements that already exist within the mount. #276

Merged
merged 3 commits into from
Nov 5, 2019

Conversation

AlterionX
Copy link
Contributor

The last part of #235.

  • Allow Seed to take over the children of the mount. This can be useful for SSR. This is partially related to Question/Feature suggestion: Server side rendering #232, which is also related to Proposal: Hydrate #223.
  • Warns of possibly questionable behavior when attempting to accomplish the above maneuver as it is now (see the doc comment for takeover_mount in AppBuilder). Due to this behavior and backwards compatibility, it is currently an opt in functionality.

… to denote what to do with children that already exist in the mount element when mounting.
@AlterionX
Copy link
Contributor Author

I'll close #235 after this gets merged.

src/vdom.rs Outdated Show resolved Hide resolved
src/vdom.rs Outdated Show resolved Hide resolved
@MartinKavik
Copy link
Member

I tested it with a project based on webpack quickstart with and without prerendering and everything seems to work. Good job. I think we can merge it once the review comments are resolved.

@AlterionX
Copy link
Contributor Author

I'll fix the mentioned issues soon.

src/lib.rs Outdated Show resolved Hide resolved
@David-OConnor
Copy link
Member

Adding this to the guide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants