Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Kiro
on July 20, 2017
|
parent
|
context
|
favorite
| on:
Things to learn in React before using Redux
How will you solve two components deep down different branches that share state?
k__
on July 20, 2017
[–]
for shared state I used localStorage/AsyncStorage and added an event emitter to it.
nrb
on July 20, 2017
|
parent
[–]
What about scenarios where that's unavailable? E.g. Safari in private browsing mode?
k__
on July 20, 2017
|
root
|
parent
[–]
I use them for persistence, so state is kept between visits.
But in private mode I'd simply use an object as key-value-store.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: