• seo uzmanı
  • NEWBIE
  • 0 Points
  • Member since 2023

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
We can make a callout by adding CSP site, and use fetch() in the js file. 
We can also make a HTTP request from the apex controller.
I can only think of one thing:
If we are just making a GET request to show some data on LWC, we use fetch api.
If we are doing a process integration, where the response has to updated in to the salesforce and the component has to be re-rendered we use apex controller class. Is that right?
Can someone explain the difference?