-
Notifications
You must be signed in to change notification settings - Fork 27k
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 example with mobx #644
Comments
@rauchg I hope there's a way to use mobx without decorators too. |
Yes it is possible to use it without decorators, I have an example here: https://github.com/fdidron/mobx-next-example | https://mobx-next.now.sh/ (It includes a lot of other stuff I discovered when using next for the first time :D, maybe a simpler example would be more suited) EDIT: Mobx documentation has a very interesting part on how NOT to use decorators : http://mobxjs.github.io/mobx/best/decorators.html |
@fdidron the question is how many of mobx users decorators or not. |
Yes it a majority that uses it, I did a poll a while back if I remember correctly it was 70-ish percent, so including decorators as example would be greatly appreciated! Btw, mobx-state-tree might be very interesting in the future for next as well, as it provides a unified way how to serialize and transfer state (and it is decorator free ;-)) |
@mweststrate thanks. 70% is the majority :) |
@arunoda I'm very happy to help on the example using decorators. Would it make sense to simply port the "with-redux" example ? |
@fdidron yeah! That'd be awesome. |
Is this so hard to add decorators? {
"presets": [
"next/babel"
],
"plugins": [
"transform-decorators-legacy"
]
} |
@cncolder Nope. It's not that hard :) |
simple example using decorators. |
@aranajhonny Very simple, thank you! |
We got the PR. |
Some people have had issues using it, so it'd be great to have an example. It's a bit more involved than others since it requires decorator support, so it'll impose a
.babelrc
The text was updated successfully, but these errors were encountered: