Fork me on GitHub
#re-frame
<
2020-04-05
>
victorb08:04:14

I'm hacking around building some dev tools with re-frame. Is there any function I can use from re-frame or internal data structure I can overwrite to reset the event registry? Want to remove everything that got registered. Scanned the code quickly and didn't find it, so asking here while I dig deeper

victorb08:04:37

I guess I can call make-restore-fn before doing anything else, then use that to reset

p-himik08:04:32

re-frame.registrar.clear-handlers.

victorb08:04:06

that's indeed the function I'm looking for. Thanks a lot @U2FRKM4TW, helpful as always! :thumbsup:

👍 4