Skip to content

Instantly share code, notes, and snippets.

@blacksonic

blacksonic/store.js

Created Jul 22, 2020
Embed
What would you like to do?
Svelte Testing Crash Course - part 13
return {
store,
async onModify(info) {
const response = await axios.post('https://example.com/api', { info });
store.update(() => response.body);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.