Fix stale data display after page edits/creation #25
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Public/noodlenook!25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "copilot/improve-page-refresh-logic"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Page content and listings weren't updating after edits or creation, requiring manual browser refresh.
Changes
PageView.jsx
loadinganderrorstate at start ofloadPage()to ensure fresh data fetch on navigationSidebar.jsx
useLocationhook to trigger page list reload on route changesloadPages()for consistencyDashboard.jsx
Example
Before, navigating from
/edit/my-pageto/page/my-pagewould show stale content because state wasn't reset:After:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.