-
-
Notifications
You must be signed in to change notification settings - Fork 926
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
m.mount no return value #2068
Comments
@yulei745 Could you give more info on your specific case? Note:
|
@isiahmeadows
|
Try something like this: let state
m.mount(document.getElementById("modal"), {
view() { return m(ModalManager, {oninit(vnode) { state = vnode.state }}) },
}) The lifecycle methods are also available as attributes, and although it's not documented (even though it should be), |
In other words, less state machine management, if there are many components, the state is not very managed. |
@yulei745 If you're needing something that scales, your app will need a lot of refactoring. Also, note that v1 is a breaking upgrade, and accordingly, we've compiled a migration guide to help you out, if you haven't read it already. |
Thank you, I probably know how to get it |
0.2.x version m.mount return value, 1.x m.mount no return value, how to do upgrade
The text was updated successfully, but these errors were encountered: