diff --git a/packages/rdom/src/switch.ts b/packages/rdom/src/switch.ts index 9790026573..e734ade32a 100644 --- a/packages/rdom/src/switch.ts +++ b/packages/rdom/src/switch.ts @@ -127,7 +127,7 @@ export class Switch extends Component implements IMountWithState { async update(val: T) { this.inner && (await this.inner.unmount()); this.inner = undefined; - if (val != null && val !== this.val) { + if (val != null) { this.val = val; let loader: IComponent | undefined; if (this.loader) {