Jan 9, 2020 in Vue.JS
Q:

Which lifecycle hook is ideal for fetching data from an API call?

1 Answer

0 votes
Jan 9, 2020

While this depends on the purpose of the component and it’s usage, the created lifecycle hook is generally ideal for placing an API call. At this point, the component’s data and reactivity features are available to operate, however, the component has not rendered yet.

Related questions

0 votes
Apr 13 in Redux
  • redux
  • redux-mcq-questions
  • redux-interview-questions
0 votes
Jul 27, 2020 in Big Data | Hadoop
0 votes
May 8, 2020 in QuickTest Professional (QTP)
...