Closed laggingreflex closed 5 years ago
createStore({ files: ['a'], add (file) { return { files: [...this.files, file] } ^^^^ access state in actions via `this` } });
Nevermind, didn't realize state is already accessible by just passing a function.
state