However, effects in component A do not run on updates that trigger component B's effects:
// Inside component AcreateEffect(() => { // This effect does not run on `obj` updates in component B trackStore(myStore); console.log(myStore[0].field1);});
// Inside component AcreateEffect(() => { // This effect does not run on `obj` updates in component B trackStore(myStore); console.log(myStore[0].field1);});
Could anyone advise on what I may be doing wrong here? Is there something wrong with passing store values as props and then creating a nested store based on that prop?