I'm using an effect to perist changes to local storage. How can I prevent the signal's instantiation from triggering the effect which then pesists an empty payload to local storage?
readonly items = signal<Item[]>([]);
private save = effect(() =>
Preferences.set({ key: 'items', value: JSON.stringify(this.items()) })
);