Skip to content

yielding a promise loses type information #1931

Answered by BATCOH
davidatsurge asked this question in Q&A
Discussion options

You must be logged in to vote

toGenerator

import { toGenerator } from "mobx-state-tree";

...

function* generator() {
  const projects = yield* toGenerator(getProjects());
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@davidatsurge
Comment options

Answer selected by davidatsurge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants