history icon indicating copy to clipboard operation
history copied to clipboard

Expose history.entries on memory history

Open fdecampredon opened this issue 4 years ago • 9 comments

While history.entries is not possible on browser or hash history It would be still very useful to expose it on memory history especially for mobile applications where stacks render not only the current route but all the previous one.

fdecampredon avatar Aug 17 '20 08:08 fdecampredon

Is this feature dead in [email protected]? That would be a damn shame that locks us on [email protected] forever.

Nantris avatar Sep 20 '21 23:09 Nantris

It seems like it would be trivial to expose. Is there some rationale for no longer exposing entries?

I'm guessing/hoping it's just to standardize the API across router types? It's really limiting for us though and I'm not seeing any alternative to access the history's entries.

@mjackson @pshrmn @timdorr

Nantris avatar Sep 20 '21 23:09 Nantris

Also wondering why entries are not exposed on MemoryRouter. Just like @fdecampredon, I want to render the previous route but without access to the entries it leaves only manually tracking the entries... (and duplicating what's already in history)

@mjackson @pshrmn @timdorr

FabianMeul avatar Dec 22 '21 21:12 FabianMeul

In case it helps with the decision, we currently use history.entries to adjust the text in the back links of our web application. I understand that exposing the entries perhaps wasn't initially thought of as a feature but it looks like it's becoming one that people depend on.

quiram avatar Jan 09 '22 09:01 quiram

We're totally dependent on it. We had no idea that we were looking at an impossible upgrade path by using properties which were exposed without any warning that they'd disappear in the future.

Nantris avatar Jan 10 '22 21:01 Nantris

Any news about this, please?

Donorlin avatar Feb 10 '22 10:02 Donorlin

Anyone following this should take a look at #939 submitted by @Donorlin. A big thanks to @Donorlin for creating the PR!

Nantris avatar Mar 10 '22 22:03 Nantris

Bump.

Nantris avatar Apr 12 '22 20:04 Nantris

Bump

trungutt avatar Jul 03 '23 21:07 trungutt