Created
July 22, 2020 16:21
-
-
Save sonicoder86/69e8bc9d2232b4b0479aa096c66064e4 to your computer and use it in GitHub Desktop.
Svelte Testing Crash Course - part 13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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