Skip to content

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
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