Skip to content

Instantly share code, notes, and snippets.

@sonicoder86
Created July 22, 2020 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sonicoder86/69e8bc9d2232b4b0479aa096c66064e4 to your computer and use it in GitHub Desktop.
Save sonicoder86/69e8bc9d2232b4b0479aa096c66064e4 to your computer and use it in GitHub Desktop.
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