Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Previous page(s) tracked #3

Open
hoopes opened this issue Jul 15, 2018 · 0 comments
Open

Previous page(s) tracked #3

hoopes opened this issue Jul 15, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@hoopes
Copy link

hoopes commented Jul 15, 2018

Hi,

This is definitely my favorite router for cljs I've found so far - I was wondering if you folks think that keeping track of the previous pages visited would be worth looking at? My use case is something like

If I'm on page x, I want to make sure I do something (like send an event to refresh a 
search to drive a table). But, I only want to do it if I'm transitioning from some other 
particular page (or set of pages...).

If I knew the previous page, I could make a decision on when to send that event. You could keep track just of the previous page, or a list of the most recent x pages. Come to think of it, is this something we can get from goog.History, and if so, does it make sense to include in this router?

I appreciate anyone taking the time to read this, even if it's a bad idea (after typing this, I gotta go look closer at History...)

Thanks!

@benzap benzap self-assigned this Mar 12, 2020
@benzap benzap added the enhancement New feature or request label Mar 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants