Skip to content

Commit

Permalink
refactor: remove old code
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Nov 26, 2019
1 parent 2dcc3ef commit 11eed2b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion __tests__/ssr/app/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { useStore, clear } from './store'

export function createApp() {
// create router and store instances
clear()
const store = useStore()
store.reset()

store.state.counter++

Expand Down
4 changes: 0 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ export function createStore<
// methods: Record<string | symbol, StoreMethod>
): CombinedStore<Id, S, G> {
const state: Ref<S> = ref(buildState())
// TODO: do we need this?
function replaceState(newState: S) {
state.value = newState
}

let isListening = true
let subscriptions: SubscriptionCallback<S>[] = []
Expand Down

0 comments on commit 11eed2b

Please sign in to comment.