Skip to content

bug(HOCs): Static methods are not copied over #732

Closed
@jeloagnasin

Description

@jeloagnasin

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

Static methods are not copied over if I use firebaseConnect.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via codesandbox or similar.

See: https://github.com/jeloagnasin/rrf-testing/blob/master/App.js for minimal demo.

In the demo, without the firebaseConnect(), the title of the screen will show up in the navigation header. But if I wrap my component in firebaseConnect(), the title is not displayed. Essentially, navigationOptions is not called.

const Stack = createAppContainer(createStackNavigator({
  // Testing: firebaseConnect()(Testing),
  Testing,
}));

What is the expected behavior?

Static methods are copied over like in v2.3.0.

Which versions of dependencies, and which browser and OS are affected by this issue? Did this work in previous versions or setups?

  • react-redux-firebase@^3.0.0-alpha.13 (worked in 2.3.0)
  • react-redux@^6.0.0

If you need more info, let me know. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions