Open ahmad2b opened 1 week ago
When users refresh the page by accident, they lose their current thread. This can be frustrating because they have to:
This happens every time the page refreshes because we use useState to store the threadId.
useState
threadId
Let's fix this by using the URL to keep track of active threadId. For example:
/thread/<thread_id>
Problem
When users refresh the page by accident, they lose their current thread. This can be frustrating because they have to:
This happens every time the page refreshes because we use
useState
to store thethreadId
.Solution
Let's fix this by using the URL to keep track of active
threadId
. For example:/thread/<thread_id>
for each threadWhy this matters
Technical Approach
/thread/<thread_id>
Questions