Skip to content

Conversation

@andys8
Copy link
Member

@andys8 andys8 commented May 10, 2022

Adding another variant of memo that allows passing a function to compareprevious and new props.

https://reactjs.org/docs/react-api.html#reactmemo

I'm open to any name changes and other suggestions.

Solves #60

Adding another variant of memo that allows passing a function to compare
previous and new props.

<https://reactjs.org/docs/react-api.html#reactmemo>

Solves <purescript-react#60>
@maddie927
Copy link
Member

Thanks! I kind of want to deprecate/rename the existing memo.. Ref equality in PS is weird...

@maddie927 maddie927 merged commit 7b98d85 into purescript-react:main May 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants