Skip to content

return value type in prepareUpdate #10904

@dakom

Description

@dakom

The official renderers seem to generally return a const of {} in prepareUpdate, for example here: https://github.com/facebook/react/blob/master/src/renderers/art/ReactARTFiberEntry.js#L493

While the tutorial at https://github.com/nitin42/Making-a-custom-React-renderer/blob/master/part-one.md suggests to return true

What is the nature of the return type from prepareUpdate and how does it affect commitUpdate() ?

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