agile-ts / agile

🌌 Global State and Logic Library for JavaScript/Typescript applications

Home Page:https://agile-ts.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

bennoinbeta opened this issue Β· comments

commented

πŸ› 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