Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support React.memo in ReactShallowRenderer #14816

Merged
merged 6 commits into from Mar 15, 2019

Commits on Mar 15, 2019

  1. Support React.memo in ReactShallowRenderer

    ReactShallowRenderer uses element.type frequently, but with React.memo
    elements the actual type is element.type.type. This updates
    ReactShallowRenderer so it uses the correct element type for Memo
    components and also validates the inner props for the wrapped
    components.
    Brandon Dail authored and gaearon committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    786262d View commit details
    Browse the repository at this point in the history
  2. Allow Rect.memo to prevent re-renders

    Brandon Dail authored and gaearon committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    f06a74e View commit details
    Browse the repository at this point in the history
  3. Support memo(forwardRef())

    Brandon Dail authored and gaearon committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    75dcd59 View commit details
    Browse the repository at this point in the history
  4. Dont call memo comparison function on initial render

    Brandon Dail authored and gaearon committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    0dbe1fd View commit details
    Browse the repository at this point in the history
  5. Fix test

    gaearon committed Mar 15, 2019
    1 Configuration menu
    Copy the full SHA
    2230fab View commit details
    Browse the repository at this point in the history
  6. Small tweaks

    gaearon committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    137f390 View commit details
    Browse the repository at this point in the history