diff --git a/documentation/docs/20-core-concepts/60-remote-functions.md b/documentation/docs/20-core-concepts/60-remote-functions.md index b62e6585fcb5..62be1a172333 100644 --- a/documentation/docs/20-core-concepts/60-remote-functions.md +++ b/documentation/docs/20-core-concepts/60-remote-functions.md @@ -270,7 +270,7 @@ export const createPost = form(async (data) => { // Refresh `getPosts()` on the server, and send // the data back with the result of `createPost` - +++getPosts().refresh();+++ + +++await getPosts().refresh();+++ // Redirect to the newly created page redirect(303, `/blog/${slug}`);