News for hackers. Stuff that matters.
Re:Show HN: Redux Offline – Build Offline-First Apps for Web... by Kiro on Thursday March 30, 2017 @05:00PM (#13998823)
Do you pass the MobX stores down to every child component as props or do you use @inject? I started with the former but all of a sudden all my components had all these "default" props that cluttered things up. @inject seems great but the documentation doesn't push it enough to make me believe it's best practice.
Re:Show HN: Redux Offline – Build Offline-First Apps for Web... by rawrmaan on Thursday March 30, 2017 @07:00PM (#13999677)
Neither. Just import a singleton root store and reference it directly.
Re:Show HN: Redux Offline – Build Offline-First Apps for Web... by hesarenu on Friday March 31, 2017 @07:24AM (#14002698)
I was using global stores but recently moved to @inject. I needed a way to reset my stores on logout. Hence now i create a root store and initialize rest of the stores.