Comments (4)
Stupid question maybe, but how can I preview the app? There used to be a preview to the side in codesandbox as far as I remember, but I don't see it:
from mobx.
In general this sounds like a transpilation setup issue (e.g. using loose instead of strict class field transpilation), but since the sandbox doesn't expose any configuration it is hard to tell.
from mobx.
Sorry, I never realized it's broken, demo updated now, run dev to preview
I just use Vite + React + TS template and add tsDecorators in vite.config.ts
from mobx.
Oh, I realized the class with @observer also need makeObservable(this)
Is it better to show this in the decorator documentation?
from mobx.
Related Issues (20)
- TC 39 decorators - use late initializers.
- MobX 7 roadmap HOT 15
- Mobx-Utils IObservableStream interface is not compatible with RxJs 7.8.1 Obserable interface HOT 1
- Inconsistent autorun behavior between first run and subsequent runs. HOT 2
- Flow JS Types not longer exported in package build? (Upgrade MobX 4 -> 6) HOT 1
- observable is not working when placed inside a function HOT 3
- Uncaught ReferenceError: process is not defined HOT 1
- mobx-react @inject does not work with new decorators HOT 1
- Using makeAutoObservable before variable initialization doesnt trigger state changes HOT 1
- @action field uses addInitializer from decorator context but that does not exist in the (new) spec HOT 2
- TS complains about @override
- `StubArray` workaround is incompatible with terser's `unsafe_arrows` option HOT 4
- mobx-react-lite component wrapped in `observer` renders twice in latest Next.js HOT 3
- Peer dependency issue for [email protected] HOT 4
- Migration from Mobx 4 > 6 HOT 6
- `trackDerivedFunction` pre-allocates memory for new deps array too aggressively HOT 1
- Invalid/extra warning in observable.box(array)
- Recommended pattern `MyComp = observer(function MyComp() {...})` leads to subtle bug
- Storing a Lit template in a mobx store does not work HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mobx.