I would like to prevent the @wire
function from loading automatically on initialization and instead load it on command.
Currently I am using refreshApex()
now to load it on command, but I don't want to load it until a button triggers it to load.
The purpose of my question is to add a Sync
button which load a good amount of data on click only.
How can I achieve this?