Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Conversation

@rmisio
Copy link
Collaborator

@rmisio rmisio commented May 30, 2016

closes #129
partially fixes #1570

Applies view caching, including restoring of the scroll position, to the Discover page & the Settings page. This is not applied to the Userpage, because that view needs some refactoring to support it first (will look to do that a little later and will make a separate PR).

js/router.js Outdated
// time to come back to it in it's current state.
for (var key in this.viewCache) {
let cached = this.viewCache[key],
curHash = location.hash.slice(1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is curHash used for? I can't find it anywhere else in the code.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea - I'm sure it had a use at some point, but I must have changed the code and forgot to clean it up. I've removed it.

@jjeffryes
Copy link
Contributor

When I merged this with master, the search bar on the discover stopped working right. When I typed in a search term and clicked enter, it didn't hide the Personalize/Random tab. Sometimes it would work, but the X button in the search bar wouldn't register clicks.

This might be due to the merge, or do to something that changed since you started on this. Can you bring this up to date with the master branch and check es-lint for any issues?

@rmisio
Copy link
Collaborator Author

rmisio commented Jun 1, 2016

Did a merge and cleaned some stuff up. Search bar seems to be working correctly now.

@jjeffryes jjeffryes merged commit d053bad into OpenBazaar:master Jun 1, 2016
@rmisio rmisio deleted the cache-dom-views branch June 2, 2016 17:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cache Views in DOM Enhancement to main screen browsing experience.

2 participants