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

Add weight to sideEffects

bennoinbeta opened this issue Β· comments

commented

πŸ› Bug report

πŸ€– Current Behavior

It can happen, that the 'rebuildStorageSideEffect' gets called before the the 'rebuildGroupSideEffect' than it stores the
not rebuild value..

grafik

Currently we are lucky, that the 'rebuildGroupSideEffects' got added before the 'rebuildStorageSideEffect'..
but that might not be always this way

πŸ“„ Reproducible example

See examples

πŸ’‘ Suggested solution(s)

Add a weight to the sideEffect, to see in which order it should get exectued!!