Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

create-issue-branch[bot]
Copy link
Contributor

@create-issue-branch create-issue-branch bot commented Jan 14, 2025

'Login to save' button now automatically saves after logging in.

Closes #843

@danhalson danhalson self-assigned this Jan 28, 2025
@@ -42,17 +42,26 @@ export const useProjectPersistence = ({
const accessToken = user?.access_token;
const params = { reactAppApiEndpoint, accessToken };

if (saveTriggered) {
if (saveTriggered || localStorage.getItem("awaitingSave")) {
Copy link
Member

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?

Copy link
Contributor

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

Copy link
Member

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!

Copy link
Member

@conorriches conorriches left a comment

Choose a reason for hiding this comment

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

very nice 🙌

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.

Integration: Save / Login functionality not as expected
2 participants