Skip to content

Update component properties when react props were updated #14

Description

@sasha240100

At the moment react-whs doesn't support updating component properties from React properties. Changing them will result in a component rebuild.

Such feature can be implemented. Using componentWillReceiveProps() we can compare prevProps with props and update only WHS.Component parameters that were changed in React component.

Such updating methods can be:

  • .build() (When unique property of custom component was changed)
  • .wrap() (Any transformations were changed)

But overall, I would recommend updating component.native values specific to each property to increase performance.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions