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

Component LifeCycles #31

Closed
9 of 12 tasks
ubugeeei opened this issue Dec 2, 2023 · 5 comments
Closed
9 of 12 tasks

Component LifeCycles #31

ubugeeei opened this issue Dec 2, 2023 · 5 comments
Labels
runtime todo PR welcome

Comments

@ubugeeei
Copy link
Member

ubugeeei commented Dec 2, 2023

related: #4

LifeCycles

Currently, we are working on Props in parallel with #25,
but it seems that we can proceed with LifeCycles on a separate axis, so we will continue with it during the discussion as well.

Some implementations seem to be able to start, while others cannot be started yet or require discussion.
If you have editing rights for this comment, please add the situation to the Todo.

Todo

@ubugeeei ubugeeei self-assigned this Dec 2, 2023
@ubugeeei ubugeeei mentioned this issue Dec 2, 2023
28 tasks
@ubugeeei ubugeeei added todo PR welcome and removed on hold labels Dec 4, 2023
@ubugeeei
Copy link
Member Author

NOTE:
It seems there are a few people trying to implement the onUpdated hook,
but it might be better to discuss it here first. Starting from the design.

@sxzz
Copy link
Member

sxzz commented Jan 4, 2024

We need to wait PR #82 to refactor reactivity system.

@GaoNeng-wWw
Copy link
Contributor

NOTE: It seems there are a few people trying to implement the onUpdated hook, but it might be better to discuss it here first. Starting from the design.

i think we can use MutationObserver watch instance state(attr/characterData/subtree/children).When changes occur, trigger the update hook

detail: #87

@LittleSound
Copy link
Member

I integrated the Render Watch API in #86. To implement the Updated And BeforeUpdate Hooks, I will emit update events within this Render Watch API.

@ubugeeei ubugeeei changed the title [Runtime] Component LifeCycles Component LifeCycles Feb 1, 2024
@ubugeeei ubugeeei removed their assignment Feb 9, 2024
@ubugeeei
Copy link
Member Author

This issue is probably sufficiently covered by #197. cc @sxzz

@github-actions github-actions bot locked and limited conversation to collaborators Sep 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
runtime todo PR welcome
Projects
None yet
Development

No branches or pull requests

4 participants