-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration: Save / Login functionality not as expected #1162
base: main
Are you sure you want to change the base?
Integration: Save / Login functionality not as expected #1162
Conversation
@@ -42,17 +42,26 @@ export const useProjectPersistence = ({ | |||
const accessToken = user?.access_token; | |||
const params = { reactAppApiEndpoint, accessToken }; | |||
|
|||
if (saveTriggered) { | |||
if (saveTriggered || localStorage.getItem("awaitingSave")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, where is awaitingSave
set?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's set in standalone, when the login to save button is clicked - there's an incoming PR for that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah roger! I shall press the happy green button of joy!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very nice 🙌
'Login to save' button now automatically saves after logging in.
Closes #843