Skip to content

fix: add champion load error state with retry support - #329

Open
TtvNekix wants to merge 1 commit into
OpenLeagueManager:developfrom
TtvNekix:fix/champions-load-error
Open

fix: add champion load error state with retry support#329
TtvNekix wants to merge 1 commit into
OpenLeagueManager:developfrom
TtvNekix:fix/champions-load-error

Conversation

@TtvNekix

Copy link
Copy Markdown
Contributor

Fixes the "TypeError: Failed to fetch" error when loading champions.

When the get_champions IPC call fails, the error was silently logged to console. Now it sets a championLoadError state that the UI can use to detect the failure and automatically retry on the next effect cycle.

Additionally, the error state is tracked so that once champions load successfully, the error clears automatically.

When the get_champions IPC call fails, the error was silently logged
to console. Now it sets championLoadError bool so the UI can detect
the failure and re-trigger loading on next effect cycle.
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.

1 participant