When navigating to a page that contains such a setup script (it happens for all our pages) the query is run twice. If I set the fetchOnMount: false on the query it is only executed once, but the onData function is never called, so I am wondering what is happening here? How can i make sure that only one query is performed?
When navigating to a page that contains such a setup script (it happens for all our pages) the query is run twice. If I set the
fetchOnMount: false
on the query it is only executed once, but theonData
function is never called, so I am wondering what is happening here? How can i make sure that only one query is performed?