Luka
Server Action Updates Load Function Server-Side but Stays Stale Client-Side
Hi everyone,
I'm facing an issue with a server action and post page in my project and could really use some assistance.
Github Repo
Form:
https://github.com/RockITFuel/solidstart/blob/main/src/components/AddPostDialog.tsx
Page:
https://github.com/RockITFuel/solidstart/blob/main/src/routes/posts.tsx
Server Action Code:
Post Page Code:
Issue:
So far on the server, it's reloading the data correctly with the newly added post, but it's not updating the client-side state.
Any ideas on how to resolve this issue? Thanks in advance for your help!
8 replies