M
M
Maksipes2020-07-22 14:13:28
JavaScript
Maksipes, 2020-07-22 14:13:28

How to get data from generator function?

There is a generator function

export function* loadInfo(id) {
  const requestURL = `some/url`;
  return yield call(requestCall, requestURL, {});
}


which is called from the generator and itself calls another generator.
how to get the result of its execution by calling from a regular function?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2020-07-22
@Casufi

https://developer.mozilla.org/en-US/docs/Web/JavaS... Pay
attention
5f182296a133d870385414.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question