Tram-One / tram-one

🚋 Legacy View Framework For Vanilla Javascript
http://tram-one.io/
MIT License
36 stars 8 forks source link

Global State should not be overridden in multiple calls #156

Open JRJurman opened 3 years ago

JRJurman commented 3 years ago

Summary

When calling useGlobalStore in multiple components with the same key, we should make sure that the values are either merged or sanely not overridden (potentially we should have a runtime error if we see the key being written to by multiple components?)