Add entries
and length
to MemoryHistory
#9853
Replies: 5 comments 1 reply
-
Hi, is there any plan to address this? Our use case requires to know when to enable or disable our app's back and forward buttons. As of today, users click on the back or forward buttons and nothing happens if there is no history. In this case, these buttons should have been disabled. How can we achieve this? Many thanks |
Beta Was this translation helpful? Give feedback.
-
I'm going to convert this to a discussion so it can go through our new Open Development process. Please upvote the new Proposal if you'd like to see this considered! |
Beta Was this translation helpful? Give feedback.
-
i have same problem when there is no history the back or forward buttons should be disabled but i don't have any way to do that (the above way is only working for back button not for forward button). |
Beta Was this translation helpful? Give feedback.
-
Following on remix-run/history#939 In our company, we are running SPA in the SSR (company historical reasons). This means the SPA state is lost whenever a site is reloaded. In version In sadly because of this, we are not able to upgrade to v6 |
Beta Was this translation helpful? Give feedback.
-
I'd really appreciate if this feature was restored. We've been stuck and unable to upgrade for years now. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What is the new or updated feature that you are suggesting?
The old
MemoryHistory
had those 2 properties that could be accessed in tests to check that the test navigated correctly through the paths providedWhy should this feature be included?
Those properties existed in v5 and provided a quick and easy way to check all the paths. It will also make the upgrading easier, even if you mark the properties as deprecated to be removed later on
Beta Was this translation helpful? Give feedback.
All reactions