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

On addon remove #3143

Merged
merged 7 commits into from
Sep 19, 2024
Merged

On addon remove #3143

merged 7 commits into from
Sep 19, 2024

Conversation

jyoung4242
Copy link
Contributor

PR to add onAdd() and onRemove() methods to entities.

also tested to work with the 'add' and 'remove' event listeners as well


Okay, some issues with this...

I stopped working on it when i realized the documentation impact and my lack of competency regarding adding tests to my code submissions

What's changed:
entity.ts has onAdd and onRemove methods added

entity.ts and actor.ts has modified update loops to manage these events

updated events.ts to include add and remove
updated lifecycleevents.ts to include has_add and has_remove
and the canRemove and canAdd interfaces

and i added some bunk testing to ActorSpec.ts, i want to apologize in advance for it....

:|

I've performed manual testing of this code

Copy link

cloudflare-workers-and-pages bot commented Sep 19, 2024

Deploying excaliburjs with  Cloudflare Pages  Cloudflare Pages

Latest commit: a1e216b
Status:⚡️  Build in progress...

View logs

@eonarheim eonarheim merged commit 81495b2 into main Sep 19, 2024
5 of 7 checks passed
@eonarheim eonarheim deleted the onAddonRemove branch September 19, 2024 02:56
@eonarheim
Copy link
Member

@jyoung4242 Thanks again for adding this feature!

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