Fork me on GitHub
#reitit
<
2020-01-22
>
stefan16:01:13

I may have something setup wrong, but when using reitit/front-end controllers to dispatch re-frame events I’m seeing a dramatic slow down in the ability of the UI to update in response to an app-db change.

stefan16:01:53

In this case a nav-link which renders with a different background color if it is the active page. When I add a re-frame dispatch of a graphql query to the start controller, it takes much longer for the nav link to change color. Though it seems like the events are still happening in the order of navigate! -> navigated -> start-controller logic when inspected with 10x. It seems because of the logic in the controller, components that depend on app-db changes made by the navigated event slow down.