function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Agnibha Chakrabarti 10Agnibha Chakrabarti 10 

i dont want to cache the data in client side

i found that i cant use @wire without setting cacheable=true.  But i dont want to cache the data... is there any solution?
yes, call you method from your LWC in get set methods or in connectedCallback
Gian Piere VallejosGian Piere Vallejos
In javascript file.
import connectToMethod from '@salesforce/apex/lwcController.methodToCall'

@wire(connectToMethod, {recordId: '$recordId'})
    wiredData({error, data}){
        if( data ) {
            //Data handle
            //Error handle
In apex lwcController.cls create the method:
public static Object methodToCall(String recordId){