-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Property was accessed through the prototype chain. Use 'decorate' instead #1506
Comments
I can't replicate https://codesandbox.io/s/rl5z5xno9p |
HMR?
Op do 19 apr. 2018 19:06 schreef urugator <[email protected]>:
… I can't replicate https://codesandbox.io/s/rl5z5xno9p
Can you set up a reproduction?
Do you extend from a custom Component or something like that?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1506 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABvGhGv6-ZRurl9rDSjRgWdk5DB_AQLGks5tqMQSgaJpZM4TcHzj>
.
|
Full implementation here @mweststrate yes indeed this happen during HMR! |
I'm having the same errors with HMR. Following babel plugins:
Following loaders for happypack were used:
These are my entrypoints
|
decorators and react hot loader has always been troublesome, and I gave up on it a few years ago :). That being said, if changing the above error to a warning fixes the problems, a PR for that will probably be accepted |
Released as 4.3.0 |
Hello,
since MobX 4 I'm (sometimes) having the following issue.
I'm declaring a computed property and an autorun attached to a React component, like this:
Sometimes I receive this in the console:
So probably I should not declare
@computed get isIntersection()
on the component class but somehow use decorate?The issue seems similar to #1427 but it's not exactly clear to me how I could solve it in this case 🤔
The text was updated successfully, but these errors were encountered: