Skip to content

React.memo with argument #61

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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 22, 2022

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