Skip to content

Conversation

rueckstiess
Copy link
Contributor

This is for future updates that want to know what version the user has used before.

E.g. feature tour only shows new features, internal data structure schemas might change and need migration, etc.

This is for future updates that want to know what version the user has used before.

E.g. feature tour only shows new features, internal data structure schemas might change and need migration, etc.
Copy link
Contributor

Choose a reason for hiding this comment

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

Would "localStorage.lastKnownVersion !== app.meta['App Version']" cover the case of "_.isUndefined(localStorage.lastKnownVersion)" as well or is there a case I'm not seeing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. app.meta['App Version'] should always be defined. So this can be simplified to

if (localStorage.lastKnownVersion !== app.meta['App Version']) {

Will patch.

@WaleyChen
Copy link
Contributor

LGTM. 🚢

WaleyChen pushed a commit that referenced this pull request Nov 5, 2015
INT-741 🎉 persisting last known version to localstorage
@WaleyChen WaleyChen merged commit 35e4139 into master Nov 5, 2015
@WaleyChen WaleyChen deleted the INT-741-store-version branch November 5, 2015 16:18
gribnoysup pushed a commit that referenced this pull request Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants