We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4453cdc commit 0bd4386Copy full SHA for 0bd4386
packages/base-controller/src/BaseControllerV1.ts
@@ -71,6 +71,8 @@ export class BaseControllerV1<C extends BaseConfig, S extends BaseState> {
71
* @param state - Initial state to set on this controller.
72
*/
73
constructor(config: Partial<C> = {}, state: Partial<S> = {}) {
74
+ this.initialState = { ...(state as S) };
75
+ this.initialConfig = { ...(config as C) };
76
}
77
78
/**
0 commit comments