Skip to content

Add last opened page pathname to local storage#1059

Closed
Komediruzecki wants to merge 1 commit intoBoostIO:masterfrom
Komediruzecki:feature/on-reload-load-last-saved-page
Closed

Add last opened page pathname to local storage#1059
Komediruzecki wants to merge 1 commit intoBoostIO:masterfrom
Komediruzecki:feature/on-reload-load-last-saved-page

Conversation

@Komediruzecki
Copy link
Copy Markdown
Contributor

Add last page pathname to web and desktop cloud space
Add last page pathname to local space

Add last page pathname to web and desktop cloud space
Add last page pathname to local space
@Komediruzecki Komediruzecki requested a review from Rokt33r July 21, 2021 21:05
Comment thread src/components/App.tsx
'lastOpenedPagePathname'
)
if (previousPathname) {
push(previousPathname)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Technically this pathname could be invalid, we could check for empty string etc.
If user goes to some pathname which is not saved (but all should be), and for example deletes storage, it might happen that on load it tries to load some 404 pathname and thus giving problems, any ideas how to check if this pathname is at least somewhat correct and if not default to valid options? (maybe parse the pathname contents, check if storage exists, if document exists)

This is especially important in team cloud spaces, as document could be removed from other teammates?

@Rokt33r Rokt33r closed this Sep 7, 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