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

Split RUIProvider into two #583

Merged
merged 1 commit into from
Jan 23, 2025
Merged

Split RUIProvider into two #583

merged 1 commit into from
Jan 23, 2025

Conversation

mbohal
Copy link
Contributor

@mbohal mbohal commented Dec 20, 2024

This commit splits RUIProvider into TranslationsProvider and GlobalPropsProvider.

The reasons fo this change are:

  • Improve performance by reducing rerenders in cases when the context value change dynamically.

  • Make code more readable by splitting isolated functionality into isolated prividers.

src/docs/customize/translations.md Outdated Show resolved Hide resolved
@mbohal mbohal force-pushed the bc/split-ruiprovider branch 3 times, most recently from f431bc0 to 226a3a0 Compare January 21, 2025 15:56
Copy link
Member

@adamkudrna adamkudrna left a comment

Choose a reason for hiding this comment

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

Looks good!

src/components/Alert/README.md Show resolved Hide resolved
src/components/Badge/Badge.jsx Show resolved Hide resolved
src/components/InputGroup/InputGroup.jsx Show resolved Hide resolved
src/docs/customize/global-props.md Outdated Show resolved Hide resolved
src/index.js Outdated Show resolved Hide resolved
src/docs/customize/translations.md Outdated Show resolved Hide resolved
src/providers/globalProps/index.js Outdated Show resolved Hide resolved
src/providers/translations/index.js Outdated Show resolved Hide resolved
This commit splits `RUIProvider` into `TranslationsProvider` and
`GlobalPropsProvider`.

The reasons fo this change are:

* Improve performance by reducing rerenders in cases when the context
  value change dynamically.

* Make code more readable by splitting isolated functionality into
  isolated prividers.
@mbohal mbohal force-pushed the bc/split-ruiprovider branch from 226a3a0 to baf0d2a Compare January 23, 2025 07:36
@mbohal mbohal merged commit ca1c36a into master Jan 23, 2025
10 checks passed
@mbohal mbohal deleted the bc/split-ruiprovider branch January 23, 2025 07:39
@adamkudrna adamkudrna linked an issue Jan 24, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider spliting RUIProvider and exporting HOCs
3 participants