agile-ts / agile

🌌 Global State and Logic Library for JavaScript/Typescript applications
https://agile-ts.org
MIT License
95 stars 8 forks source link

Dynamically added Item isn't loaded correctly into the Collection after beeing peristed. #172

Closed bennobuilder closed 3 years ago

bennobuilder commented 3 years ago

🐛 Bug report

🤖 Current Behavior

After persisting a dynamically added Item (isn't a hard-coded initial Item) with the Collection and refreshing the browser. This Item is loaded correctly into the Collection. However, it has no persistent -> when updating the itemValue of that Item, the storageValue can't be updated since the Item doesn't know that it is persisted.

🎯 Expected behavior

After loading a dynamically added Item into the Collection, it should have an persistent and thus should know that it is persisted.

📄 Reproducible example

See examples/react/develop/functional-component-ts

💡 Suggested solution(s)

no

➕ Additional notes

no

💻 Your environment

problem exists in all agile versions