Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Delay instantation of brcast in ThemeProvider so it can be inited wit… #365

Merged
merged 1 commit into from
Dec 22, 2017

Conversation

Andarist
Copy link
Contributor

…h correct initialState

What:
Delayed initialization of brcast to componentWillMount

Why:
So it won't ever get "untrue" initialState in case of nested ThemeProviders

Checklist:

  • Documentation
  • Tests
  • Ready to be merged
  • Added myself to contributors table

This is a follow up PR to the discussion here

@codecov-io
Copy link

Codecov Report

Merging #365 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #365   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          10     10           
  Lines         179    181    +2     
  Branches       50     51    +1     
=====================================
+ Hits          179    181    +2
Impacted Files Coverage Δ
src/theme-provider.js 100% <100%> (ø) ⬆️

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 8cd90bd...795f50f. Read the comment docs.

Copy link
Collaborator

@paulmolluzzo paulmolluzzo left a comment

Choose a reason for hiding this comment

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

Wow, that was quick!

LGTM. Thanks @Andarist!

Copy link
Contributor

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

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

Super! Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants