I always use refreshApex to refresh the condition after some soql action or something else, I find out that refreshApex only work on plain parameter, for example:
@wire(someMethod, {Id: '$recordId'}) result({error, data}) { if (data) {...} else if (error) {...} } @wire(someMethod, {Id: '$recordId'}) dummyResult handleChange(e) { refreshApex(this.result) // this won't work refreshApex(this.dummyresult) // this works } And the amazing part is that if I refresh the dummyResult, all the code inside if (data) will be excuted(just what I want), can someone explain why?