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

Fix scene edit state resetting when scene is updated #1112

Merged
merged 5 commits into from
Feb 11, 2021

Conversation

ghost
Copy link

@ghost ghost commented Feb 8, 2021

Replaces useEffect form initialization with initialization directly in the state variables, so state is only ever initialized once. This avoids the issue where updating organized/ocounter state would reinitialize the form.

Resolves #1110.

@ghost ghost added the bug Something isn't working label Feb 8, 2021
@WithoutPants WithoutPants added this to the Version 0.5.0 milestone Feb 9, 2021
@WithoutPants
Copy link
Collaborator

This works, but could you also cover the Image, Gallery, and Performer pages which have the same bug?

@ghost
Copy link
Author

ghost commented Feb 10, 2021

I've fixed the gallery and image pages. The performer page really needs a refactor, but I fixed the favorite button resetting state by removing the loading state, which I think is a better experience anyway.

@WithoutPants WithoutPants merged commit 758eccc into stashapp:develop Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report] Setting Organised State Reverts Data to Last Saved State
1 participant