From 3d222ec2aa3175f6459073b81d07a77c4ef059ca Mon Sep 17 00:00:00 2001 From: JMS55 <47158642+JMS55@users.noreply.github.com> Date: Wed, 27 Dec 2023 12:04:53 -0800 Subject: [PATCH] Add TODO --- src/ecs_hooks.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ecs_hooks.rs b/src/ecs_hooks.rs index f6e9e67..c31e411 100644 --- a/src/ecs_hooks.rs +++ b/src/ecs_hooks.rs @@ -116,6 +116,7 @@ where } } +// TODO: Don't think this actually works. EcsSubscriptions needs to handle this. pub fn use_event_reader<'a, E: Event>(cx: &'a ScopeState) -> EventIterator<'a, E> { let event_reader = cx.use_hook(|| ManualEventReader::default()); let events = EcsContext::get_world(cx).resource::>();