Last active
February 1, 2020 22:28
-
-
Save JozefFlakus/4a9cd152e4b1a46e56653754bddc28b9 to your computer and use it in GitHub Desktop.
Marble.js 3.0 - async readers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bindEagerlyTo(Token)(async () => 'bar'); | |
const foo = useContext(Token)(ask); // foo === 'bar' | |
// but... | |
bindTo(Token)(async () => 'bar'); | |
const foo = useContext(Token)(ask); // foo === Promise<'bar'> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment