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 5f5c68c commit b8e98e2Copy full SHA for b8e98e2
src/stores.ts
@@ -155,14 +155,13 @@ function createWalletStateSliceStore(options: {
155
const { subscribe, set } = writable(initialState)
156
157
let currentState: string | number | null | undefined
158
- const unsubscribe = subscribe(store => {
+ subscribe(store => {
159
currentState = store
160
})
161
162
return {
163
subscribe,
164
reset: () => {
165
- unsubscribe()
166
set(undefined)
167
},
168
setStateSyncer: (stateSyncer: StateSyncer) => {
0 commit comments