store.destroy() performs wrong actions. #433
Replies: 2 comments 12 replies
-
We call reset for cases where your store is defined outside, and you want to reuse the same store afterward. For the same reason, we can't call the Note that |
Beta Was this translation helpful? Give feedback.
-
This is exactly what I ran into. I would say that doing a |
Beta Was this translation helpful? Give feedback.
-
Why
destroy
method emits initialState one more time? And even more important whydestroy
do not callcomplete
?https://github.com/ngneat/elf/blob/0261ab9f8f542a21875883c61f9e1ce56e04bc00/packages/store/src/lib/store.ts#L124:L127
Beta Was this translation helpful? Give feedback.
All reactions