From 47994975f9df370a140e2a244748524ce794de4d Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Wed, 17 Jan 2024 11:52:41 +0100 Subject: [PATCH] Replace state "deep" option with "shallow" option --- state.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/state.js b/state.js index b4306e1..e751cda 100644 --- a/state.js +++ b/state.js @@ -65,7 +65,7 @@ export class State extends SimpleState { const old = this.get(prop) if (old !== value) { this.emit(prop, value) - if (this.#options.deep !== false) { + if (this.#options.shallow) { if (State.isState(old)) this.disown(prop, old) if (State.isState(value)) this.adopt(prop, value) }