Skip to content

In the past destructuring was discouraged, is this still the case? #3354

Answered by urugator
rluvaton asked this question in Q&A
Discussion options

You must be logged in to vote

Destructuring was always fine. It's more about dereferencing late:
https://mobx.js.org/react-optimizations.html#dereference-values-late
https://mobx-react.js.org/ was more or less a personal project of mobx-react-lite's original author FredyC.
It's just an unfortunate choice of words combined with opinionated usage patterns.

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@rluvaton
Comment options

@qwertie
Comment options

@urugator
Comment options

Answer selected by kubk
Comment options

You must be logged in to vote
3 replies
@kubk
Comment options

@Besuf
Comment options

@goamn
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants