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

feat: add runtimeid option #30

Merged
merged 1 commit into from
Mar 14, 2020
Merged

feat: add runtimeid option #30

merged 1 commit into from
Mar 14, 2020

Conversation

DylanPiercey
Copy link
Contributor

Description

Exposes a new runtimeId option for the @marko/webpack/plugin which automatically inlines $global.runtimeId on the server and calls markoComponents.init(runtimeId) with the same id.

This runtimeId is used in Marko to allow for multiple copies of Marko to run on the same page which would normally cause issues since Marko relies on window variables for component data serialization.

Checklist:

  • I have updated/added documentation affected by my changes.
  • I have added tests to cover my changes.

@DylanPiercey DylanPiercey merged commit 4947ed6 into master Mar 14, 2020
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.

1 participant