Skip to content

Conversation

@chambo-e
Copy link
Contributor

@chambo-e chambo-e commented Dec 16, 2021

This is mainly intended when use-i18n is used server side, be it on unit tests or ssr.

On first render the provider will load date-fns locale and then rerender, trigger multiple errors on jest because we don't act on render.

When specified a default date-fns locale and no load function provider will not rerender

@chambo-e chambo-e requested a review from a team December 16, 2021 18:39
@chambo-e chambo-e self-assigned this Dec 16, 2021
@chambo-e chambo-e requested review from DorianMaliszewski, adriengibrat and vincentaudebert and removed request for a team and vincentaudebert December 16, 2021 18:39
@chambo-e
Copy link
Contributor Author

chambo-e commented Dec 16, 2021

Needs #546

@chambo-e chambo-e force-pushed the fix/default_date_dns branch from 8d11f00 to e5cad9b Compare December 20, 2021 11:48
@codecov
Copy link

codecov bot commented Dec 20, 2021

Codecov Report

Merging #547 (e5cad9b) into main (88bb172) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #547   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           17        17           
  Lines          515       514    -1     
  Branches        86        87    +1     
=========================================
- Hits           515       514    -1     
Impacted Files Coverage Δ
packages/use-i18n/src/usei18n.tsx 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 88bb172...e5cad9b. Read the comment docs.

@chambo-e chambo-e requested a review from philibea December 30, 2021 14:04
@chambo-e chambo-e merged commit 77606c7 into main Jan 3, 2022
@chambo-e chambo-e deleted the fix/default_date_dns branch January 3, 2022 09:25
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.

4 participants