ngxtension / ngxtension-platform

Utilities for Angular
https://ngxtension.netlify.app/
MIT License
592 stars 87 forks source link

Is there any way to perform reset to initial state in signal slice? #496

Closed illunix closed 2 weeks ago

illunix commented 3 weeks ago

Is there any way to perform reset to initial state in signal slice or I need to add this code to every state?

 resetToInitialState: (_, $: Observable<void>) =>
        $.pipe(map(() => signInInitialState))
joshuamorony commented 3 weeks ago

@illunix no there is no default reset action source, what you have suggested would be an appropriate way to go about it