-
-
Notifications
You must be signed in to change notification settings - Fork 634
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
[Request] Integrate inferno-mobx with Inferno's functional components #815
Comments
This is the error I get when I try to use
And this is my code:
|
Currently focus is on fixing bugs and making 1.3 stable. This is something we could implement or at least investigate for Inferno 1.4 |
I did short investigation on this and it seems that mobx is wrapping all functional components with class components to be able to re-render them... |
Basically it means with the current state of mobx integration using functional components is anti pattern |
@Havunen I could take a look at fixing this, I'm going to be writing inferno integration for my own state management library which functions using a similar observer pattern to mobX. It wouldn't be hard to port whatever I do to mobX, my main concern is what Inferno APIs are considered stable, because doing this work would require forcing an update of a functional component which is only possible using undocumented internal functions (I think |
Is it possible to create an API for functional components?
Currently, it only supports Component classes and stateless components. So it's quite awkward if we need to generate side-effects on initialization, for example.
The text was updated successfully, but these errors were encountered: