Browse Source

just export state directly

master
Conduitry 2 years ago
parent
commit
45d8fe88b1
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      src/svelte-state.js

+ 1
- 3
src/svelte-state.js View File

@ -1,9 +1,7 @@
let reducer = state => state
let listeners = new Set()
let state
export let getState = () => state
export let state
export let setReducer = (newReducer, preloadedState = newReducer()) => {
reducer = newReducer

Loading…
Cancel
Save