Meteor-rpc publications cause fullpage rerender

Hey,

i noticed an issue in my react / meteor app. I use tastack router / client, meteor-rpc and Mantine for my application. I noticed that when having publications from meteor-rpc on my page component, the whole app will trigger a rerender, resulting in a flicker of the app. Ive verified this by implementing a couple of test pages with only useQuery / useMutation and another that usePublication. The query pages behave fine, but when i navigate (using tanstack router Link components) the entire page will flash and do a rerender. Every time I visit a page with usePublication on it.

Maybe someone knows how to further debug this or fix the issue

1 Like

Could you share a snippet? What does your subscription query look like?

Using methods does re-render?

If you can provide a repository or at least a working internet URL, it will be much easier for other to debug.

I can’t provide a snippet as the code is not yet public. I can see if i can prepare a minimal reproduction repo. I investigated the issue further and converted one of my pages to a traditional pubsub using useTracker() and the issue persist. It might have to do with tanstack router or mantine

Might have solved the issue. Was completely relevant to tanstack router and its built in transition stuff. I ve explicitly disabled some of it and this seem to have fixed the issue

1 Like

amazing!
do you mind to share more details for the future readers? (and to mark it as a “solution” as well)