fix: detect stale deployment and prompt user to refresh (#388)
When a new version is deployed while users have the page open,
Next.js Server Actions fail with hash mismatches. This adds a
global listener that catches the specific error and shows a
persistent toast prompting the user to refresh.
Closes the issue reported by @thisismissem where editing broke
after a deployment.
authored by