Skip to content

whyDidYouRender error in getOwnerDifferences in tests #321

@Hypnosphi

Description

@Hypnosphi

Reproduction (I tried to make it as minimal as possible): https://github.com/Hypnosphi/wdyr-issue

console.log
    whyDidYouRender error in getOwnerDifferences. Please file a bug at https://github.com/welldone-software/why-did-you-render/issues. {
      errorInfo: {
        error: TypeError: Cannot read properties of undefined (reading 'result')
            at result (/wdyr-issue/node_modules/@welldone-software/why-did-you-render/src/getUpdateInfo.js:24:78)
            at Array.map (<anonymous>)
            at map (/wdyr-issue/node_modules/@welldone-software/why-did-you-render/src/getUpdateInfo.js:22:48)
            at getOwnerDifferences (/wdyr-issue/node_modules/@welldone-software/why-did-you-render/src/getUpdateInfo.js:51:23)
            at getUpdateReason (/wdyr-issue/node_modules/@welldone-software/why-did-you-render/src/getUpdateInfo.js:68:13)
            at getUpdateInfo (/wdyr-issue/node_modules/@welldone-software/why-did-you-render/src/patches/patchFunctionalOrStrComponent.js:27:26)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions