Change single instance of icon

This could end up a little flaky.

I believe api.onPageChange is firing on the route change.

That’s well before rendering.

Therefore there’s a risk the elements won’t be rendered before you attempt to find and override them.

You may be lucky but it’s not guaranteed. Hence awesomerobot raising that it would be nice if there was a dedicated api …

(@Don your solution has a similar issue I believe)

2 Likes