A better solution is possible here. datahike could export this macro as a hook and all will be fine
I’ll make a PR
https://github.com/replikativ/datahike/pull/1160 cc @whilo