Skip to content
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

fix(tiny-react): fix memo #168

Merged
merged 17 commits into from
Oct 19, 2023
Merged

fix(tiny-react): fix memo #168

merged 17 commits into from
Oct 19, 2023

Conversation

hi-ogawa
Copy link
Owner

@hi-ogawa hi-ogawa commented Oct 19, 2023

Directly calling fc(props) is a problem since that could break hook counts.
once(fc) is probably okay-ish starting point, but probably react/preact does more drastic optimization based on "identical vnode" (cf. #163).

EDIT:

once(fc) is probably okay-ish starting point,

No, this would cause re-mount on props change...

EDIT: but this a little convoluted MemoManager works 0254733

todo

  • test

@hi-ogawa hi-ogawa mentioned this pull request Oct 19, 2023
16 tasks
@hi-ogawa hi-ogawa changed the title feat(tiny-react): support memo fix(tiny-react): fix memo Oct 19, 2023
@hi-ogawa hi-ogawa marked this pull request as ready for review October 19, 2023 04:39
@hi-ogawa hi-ogawa merged commit ba34fe9 into main Oct 19, 2023
1 check passed
@hi-ogawa hi-ogawa deleted the fix-tiny-react-memo branch October 19, 2023 12:21
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.

1 participant