Skip to content

Investigate/refactor to use best practice for ensuring referential integrity of param in modelHook #6

@byhag

Description

@byhag

Description

In order to avoid infinite re-renders for model hooks that use anonymous objects or functions, we're stringifying the param to use as a dependency for useCallback. We should investigate to find or verify best practice for this functionality.

Motivation

  • Follow best practices
  • Be more Reacty

Implementation

  • Investigate
  • Refactor (if necessary)

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