Skip to content

Conversation

@JustinTulloss
Copy link
Contributor

@JustinTulloss JustinTulloss commented Jul 9, 2017

Description

Adds two statics to a connected component:

  • WrappedComponent, which is the original component. This is useful for testing without mocking out firebase.
  • displayName is set to reveal what component is wrapped by FirebaseConnect. This makes debugging easier.

This will require a new version (presumably 1.4.4) but is purely additive and therefore should not break any existing code, unless people were relying on the previous behavior of displayName.

Check List

If not relevant to pull request, check off as complete

  • All tests passing
  • Docs updated with any changes or examples
  • Added tests to ensure feature(s) work properly

@JustinTulloss JustinTulloss changed the title Expose wrapped and displayname Expose wrapped component and displayName Jul 9, 2017
@codecov
Copy link

codecov bot commented Jul 9, 2017

Codecov Report

Merging #188 into master will increase coverage by 0.05%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #188      +/-   ##
==========================================
+ Coverage   85.83%   85.89%   +0.05%     
==========================================
  Files          17       17              
  Lines        1483     1489       +6     
  Branches      246      246              
==========================================
+ Hits         1273     1279       +6     
  Misses        210      210

@prescottprue prescottprue changed the base branch from master to v1.4.4 July 10, 2017 05:40
@prescottprue prescottprue changed the title Expose wrapped component and displayName feat(firebaseConnect): expose wrapped component and displayName Jul 10, 2017
@prescottprue prescottprue merged commit 2350a01 into prescottprue:v1.4.4 Jul 10, 2017
@prescottprue
Copy link
Owner

Great addition. Will release in v1.4.4 soon.

@prescottprue prescottprue mentioned this pull request Jul 10, 2017
3 tasks
@prescottprue
Copy link
Owner

Released with matching tests in v1.4.4.

@prescottprue prescottprue mentioned this pull request Jul 14, 2017
3 tasks
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.

2 participants