My items dont update on deletion.
This isnt a bug, its just bad coding on my side.
page.tsx fetches the data from prisma serverside, then passes it through components such as VaultPage, and i just noticed when you DELETE items using the buttons in these client side components it does not revalidate the data until a reload.
https://github.com/LockScript/Lockscript-Vault
GitHub
GitHub - LockScript/lockscript-vault
Contribute to LockScript/lockscript-vault development by creating an account on GitHub.
2 Replies
If anyone could check it out, it would be greatly appreciated!
Hey 👋
I saw the repository and looks like you fixed the issue 🙌
Based on my assumption, it looks like adding
force-dynamic
param fixed the issue, right?
https://github.com/LockScript/lockscript-vault/blob/63c5e79792d1181b910559e5e32a1fdd97522725/src/app/(main)/page.tsx#L7GitHub
lockscript-vault/src/app/(main)/page.tsx at 63c5e79792d1181b910559e...
Contribute to LockScript/lockscript-vault development by creating an account on GitHub.