You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When opening any settings screen (either Heroic's or a game), configuration is saved to disk multiple times.
Opening Heroic's settings the first time it writes the config 13 times. After that, changing to another sub-section (General, Wine, Other, etc), write the settings 3 more times. That's without doing any change.
Opening a game's settings the first time it writes the game's config 8 times for one game, 15 times for another, 16 times for another. After that, changing sub-sections writes the config 3 times for every section.
Going to another screen and back to settings starts with all the writes again.
Add logs
Nothing shows up on the logs, I put a console.log('writing config') in this useEffect in the settings index
Describe the bug
When opening any settings screen (either Heroic's or a game), configuration is saved to disk multiple times.
Opening Heroic's settings the first time it writes the config 13 times. After that, changing to another sub-section (General, Wine, Other, etc), write the settings 3 more times. That's without doing any change.
Opening a game's settings the first time it writes the game's config 8 times for one game, 15 times for another, 16 times for another. After that, changing sub-sections writes the config 3 times for every section.
Going to another screen and back to settings starts with all the writes again.
Add logs
Nothing shows up on the logs, I put a
console.log('writing config')
in thisuseEffect
in the settings indexThis is just opening the settings for Magic The Gathering Arena (no changes at all)
Steps to reproduce
writing config
lines are logged in the consoleExpected behavior
Configuration should only be written when it changes, and only once. It should also NOT be written when opening settings or changing between sections.
Screenshots
No response
System Information
Additional information
I'm already debugging this trying to refactor it (I assigned this to me already), I'm creating the issue to keep track of it.
The text was updated successfully, but these errors were encountered: