mobxjs / mobx-react-devtools

[DEPRECATED] Tools to perform runtime analyses of React applications powered by MobX and React
MIT License
1.23k stars 49 forks source link

[mobx] 'extras' is no longer part of the public MobX api. #86

Closed tsiq-swyx closed 6 years ago

tsiq-swyx commented 6 years ago

hi team!

I have an issue.

Here is my error messages:

Error
[mobx] 'extras' is no longer part of the public MobX api. Please consult the changelog to find out where this functionality went
▶ 11 stack frames were collapsed.
TodoListClass.onSubmit
/src/todolist.js:9:29
   6 | 
   7 | export class TodoListClass {
   8 |   items = ["get milk"]; // observable array
>  9 |   onSubmit = e => this.items.push(e); // action
     |                             ^
  10 | }
  11 | decorate(TodoListClass, { items: observable, onSubmit: action });
  12 | 
View compiled
▶ 2 stack frames were collapsed.
onSubmit
/src/todolist.js:34:17
  31 | <form
  32 |   onSubmit={e => {
  33 |     e.preventDefault();
> 34 |     list.onSubmit(this.input.value);
     |         ^
  35 |     this.input.value = "";
  36 |   }}
  37 | >
View compiled

image

Here is the codesandbox: https://codesandbox.io/s/20lv7n3kvn just try to submit text in any box to see the error

what i'm trying to do here is to decorate my onSubmit with an action or action.bound. i expected it to work but got this opaque error. checking the changelog showed nothing.

State the versions of MobX and relevant libraries. Which browser / node / ... version?

latest chrome, and the deps are in the codesandbox:

image

please let me know what I should do. thank you!

andykog commented 6 years ago

Published mobx-react-devtools@5.0.0 compatible with mobx@4

tsiq-swyx commented 6 years ago

whoo! thank you!

On Sun, Mar 18, 2018 at 2:31 PM, Andy Kogut notifications@github.com wrote:

Closed #86 https://github.com/mobxjs/mobx-react-devtools/issues/86.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mobxjs/mobx-react-devtools/issues/86#event-1527359614, or mute the thread https://github.com/notifications/unsubscribe-auth/AiT1grj0mSsEpC4EZFLd9kTZ9GUjyMoGks5tfqgLgaJpZM4SuoCk .

mweststrate commented 6 years ago

@tsiq-swyx would you mind updating that in the blog post ;-)?

mweststrate commented 6 years ago

Also notice that my name is spelled "Michel Weststrate" ;-)

tsiq-swyx commented 6 years ago

oops sorry, will fix!

i will find time this week to go back and fix up the rest of the blogpost. takes a lot of time to set up the examples correctly :)

roots-ai commented 4 years ago

This is not resolving the issue for us "mobx-react-devtools@5.0.0"