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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
runtime todo PR welcome
Projects
None yet
Development

No branches or pull requests

4 participants