Skip to content

fix: fix useLocaleMessages and refactor useUiData - #189

Merged
antobinary merged 1 commit into
bigbluebutton:v0.0.xfrom
GuiLeme:fix-locales-hook
Jun 19, 2025
Merged

antobinary merged 1 commit into
bigbluebutton:v0.0.xfrom
GuiLeme:fix-locales-hook

Conversation

@GuiLeme

@GuiLeme GuiLeme commented Jun 10, 2025

Copy link
Copy Markdown
Collaborator

What does this PR do?

It does 2 things:

  • Fix the wrong behaviour in useLocaleMessages of not returning anything when the fallback locale fails to be fetched or parsed;
  • Refactor useUiData to not update its state when the content doesn't change - This lead to unnecessary fetches in the useLocaleMessages hook;

Closes Issue(s)

Closes #184

Motivation

Desired language was not being fetched when fallback locale file had a problem (even if the desired locale file was working properly).

More

Nothing to be changed in the CORE.

@antobinary
antobinary merged commit 7c2f3d9 into bigbluebutton:v0.0.x Jun 19, 2025
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.

3 participants