if you "just" add a simple plain objects in a provider/service for example, it re-renders only if you takes care of triggering the change detection "manually", what I was looking to avoid.
but of course I understand your point.
I could have use another store, like Zustand or else. I picked the stencil one because it is lightweight and bare simple.
well, first thing I should probably mention is even though it is called "stencil store" there is no "stencil / web components" inside.
as I said in another comment, if I would have to bet, I would say that my spontaneous understanding is that the store is using a proxy and that's why the change detection is noticing the modifications. But, I can't be totally uncorrect. If anyone want to give a better explanation, would like to hear it too.
I did check the source of stencil store before my first comment, and I found only stencil specific updates reacting on store changes. But being a proxy wouldn't trigger angular CD either. I'm still sure about my original statement, stencil store work only because the same reason a plain js object would.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
if you "just" add a simple plain objects in a provider/service for example, it re-renders only if you takes care of triggering the change detection "manually", what I was looking to avoid.
but of course I understand your point.
I could have use another store, like Zustand or else. I picked the stencil one because it is lightweight and bare simple.
"if you takes care of triggering" - how come does stencil take care?
well, first thing I should probably mention is even though it is called "stencil store" there is no "stencil / web components" inside.
as I said in another comment, if I would have to bet, I would say that my spontaneous understanding is that the store is using a proxy and that's why the change detection is noticing the modifications. But, I can't be totally uncorrect. If anyone want to give a better explanation, would like to hear it too.
I did check the source of stencil store before my first comment, and I found only stencil specific updates reacting on store changes. But being a proxy wouldn't trigger angular CD either. I'm still sure about my original statement, stencil store work only because the same reason a plain js object would.