ngneat / elf

🧙‍♀️ A Reactive Store with Magical Powers
https://ngneat.github.io/elf/
MIT License
1.62k stars 93 forks source link

preStoreInit don't update with 'localStorageStrategy' #496

Closed SatarisGIT closed 1 year ago

SatarisGIT commented 1 year ago

Which @ngneat/elf-* package(s) are the source of the bug?

store, requests-data-source, persist-state

Is this a regression?

No

Description

As in title - when I use preStoreInit method with storage: localStorageStrategy - "new" overrided values don't also update on localstorage. I must manually invoke update method in preStoreInit (but also in hacky-way, inside setTimeout).

image

NetanelBasal commented 1 year ago

You're welcome to create a PR