mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 01:50:27 +00:00

The callbacks are in a nested table, so they weren't actually called. If there aren't more events then callbacks for "changed" don't need to be nested in the callbacks table. Alternatively emitChanged() could take an event name: emit("changed") and run callbacks for a specific event or take a table of events and run for all, emit({"changed", "navigate"}).