Skip to content

Commit 11eed2b

Browse files
committed
refactor: remove old code
1 parent 2dcc3ef commit 11eed2b

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

__tests__/ssr/app/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { useStore, clear } from './store'
88

99
export function createApp() {
1010
// create router and store instances
11-
clear()
1211
const store = useStore()
12+
store.reset()
1313

1414
store.state.counter++
1515

src/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ export function createStore<
5858
// methods: Record<string | symbol, StoreMethod>
5959
): CombinedStore<Id, S, G> {
6060
const state: Ref<S> = ref(buildState())
61-
// TODO: do we need this?
62-
function replaceState(newState: S) {
63-
state.value = newState
64-
}
6561

6662
let isListening = true
6763
let subscriptions: SubscriptionCallback<S>[] = []

0 commit comments

Comments
 (0)