Salesforce LWC Tutorial Part 5 | ToDo App Project | Wire Service linked to Function and RefreshApex

preview_player
Показать описание
Hello Trailblazers, In this video we're going to learn how we can fetch the data from the apex controller for our ToDo List component using wire service in LWC. We're going to bind our Wire Service to a function in js which will receive the response parameter. This time we'll be able to mutate the ToDoList as it won't be directly binded with wire service. We'll also learn about RefreshApex function which will be used to refresh the browser cache.

Рекомендации по теме
Комментарии
Автор

Nice Explanation sir...

Thank you🌹

sathishbatta
Автор

Thank you for this tutorial @sfdc stop.

chandrimaghosh
Автор

Not getting any task records in response.data, checked in dev console the controller works fine but in lwc no task record.
Receiving in console the data as: [object Object], [object Object], [object Object], [object Object]

indranibiswas
Автор

What will happed if you delete all 5 records . And then you will click on refresh button ??

jatinpuri
Автор

Hi, you are used refresh button for refresh data, but how can I auto refresh without click refresh button, when the record is created

anushareddy
Автор

The tasks aren't rendering for me in the UI although they are showing in the console.log. Even on adding a task from UI, it adds in the todoList, which I verified from console, but it isn't rendering in UI. Can you please help.

bhardwajsourabh
Автор

Are you teaching any online classes for lwc ? Vs code ? If yes, please let me know sir

pranavi
Автор

Hi Rahul, I am not able to fetch data from apex below is the error code in console, could you please guide

Note: TodoListController is created with valid method name.

harshitshah
Автор

Hello I am trying to push my org but it keeps saying unable to find apex action method referenced as Please can you help?

patriceminimah