|
|
|
|
|
by mercurial
3213 days ago
|
|
Well, that's not really the idea behind React. You could say local storage is more a convenience than anything, React is primarily about rendering your data. The problem is that, with Redux at least, composing data stores is a major pain. The only pattern supported out-of-the-box is horizontal slicing (have different reducer for separate pieces of data). This may work for separate pages, but it does nothing for you as soon as you need data sharing. I don't think React itself should change, but I haven't found a really satisfactory solution to the problem of sharing stored data. |
|