Комментарии:
where is the second part?
Ответитьcan any one tell me how this is different from context api
ОтветитьDo I have to write in Typescript if I want to use mobX?
ОтветитьDamn that's a boilerplate that I would liike to avoid. I prefer something easy to use like "Store me".
ОтветитьWhat's up with;
```
"mobx": "^6.0.4",
"mobx-react-lite": "^3.1.6",
```
If I click the button it doesn't rerender. But if I go to my file make an edit and save to get the hot reloading update then the counter shows the new state. Is anyone else experiencing this issue with the latest versions. Works fine with;
```
"mobx": "^5.9.0",
"mobx-react-lite": "^1.0.1",
```
по русски разговаривай идиотина ,я тебя не понимаю!!!
Ответитьsaved me, works fine!
ОтветитьProvider component?
ОтветитьHow do I persist state with mobx and react hooks?
Ответитьfantastic tutorial!! thanks
ОтветитьI was wondering why did you wrap the count store in context, when we can use the store directly? is there any advantage of wrapping it in context?
ОтветитьI don't have a tsconfig or a jsconfig. I've been in hell trying to get rid of this error -- using CRA3 and JS
ОтветитьVery cool, I am having difficulties with MobX now, the page renders indefinitely after a Promise with data resolves and fills up an array with data. No idea why...
ОтветитьGetting the "Invalid Hook Call" error when using the useContext hook when the component is wrapped in observer()
ОтветитьOnly works with JS scalar types (types.string, types.number, etc..). If MobX Store property if of type "types.array(Other model)" or "types.map(Other model)", react hooks does not take care of those properties updates (useEffect/useMemo/etc). Do you why ?
Ответитьi'm getting error *
error: bundling failed: Error: Unable to resolve module `mobx-react-lite`*
if i go to root directory node_modules it showing me *mobx-react-lite*.
can u plz help me
this tutorial is sick, I like it!!
ОтветитьVery helpful, thank you Ben.
Ответитьhow difficult it will be to create a react-native-web-cli with a create-rnw command that creates a folder with all the packages configurated? i dont have any idea of how to do it, but it will be a good exercise if you ask me, i'm in to try to help if you want to do it
ОтветитьHow do you decide when to use interface vs type
ОтветитьWhere are you willing to store the workouts data, firebase?
ОтветитьSeems good BUT i think using mobx with hooks is not ideal (or maybe i still dont get it) why? because the magic of mobx is that you pick which properties you want your component to listen without all that extra setup by default. Anyway you're awesome Ben!
ОтветитьWill you build in an ability for the React-Native app to work 'offline' / not connected to a server?
ОтветитьI like using the data format like '2019-02-19' as that's how postgresql uses/displays dates natively.
ОтветитьSilly question perhaps, but CMD + Space doesn't open up the intellisense / import thingy... How did you set that up?
And what is currently set to your CTRL + period?
Amazing content as always
ОтветитьI just don't understand anymore why use something else to manage the store, than the context.
Ответить