-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
bugSomething isn't workingSomething isn't working
Description
📝 Describe the Bug
When a user navigates to a specific route via the SPA router and performs a hard browser refresh (F5), the application successfully reloads but drops the user back at the root route (/), losing their current page context.
Minimal Reproducible Example
To reproduce this, make the following components:
- Make a
HomePagecomponent returning a simple header. - Make a
CounterPagecomponent returning a simple header. - Make an
Appcomponent that wraps them both in aRouter:
def App(**props):
return Router(
routes={
"/": HomePage,
"/counter": CounterPage
}🔁 Steps to Reproduce
-
Start the server and navigate to http://localhost:8000.
-
Navigate to http://localhost:8000/counter (either by typing it or clicking a Link).
-
The CounterPage will render.
-
Perform a hard refresh (F5).
-
You will be returned to "/" which will affect development when using hot reload
✅ Expected Behavior
The CounterPage shouold remain on the screen.
💻 Environment
- OS: Windows 11
- Python Version: [e.g. 3.13]
- Pyponent Version: v0.1.2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working