Рет қаралды 909
In this video I will show you how you can refresh the GraphQL query results in your Lightning Web Components.
The GraphQL wire adapter automatically caches your query results to improve the loading performance of subsequent queries. You can trigger a refetch of the query results and update the cache by calling the refreshGraphQL(result) function.
When calling refreshGraphQL, you must pass the exact object that was previously passed to your wire function or variable. The wire function or variable must preserve the original value from the wire adapter and can’t use a destructuring parameter assignment.
#GraphQL #lwc #salesforce
Join me on Instagram : / iamkapilbatra
My journey : www.salesforce...
Blog / Code Snippet : www.salesforce...
Website : www.salesforce...
LinkedIn : / salesforcebolt
Twitter : / salesforcebolt
Facebook : / iamsalesforcebolt