Created
October 11, 2016 14:28
-
-
Save klaemo/602ecc84795213cfd50c3fadfa4b7411 to your computer and use it in GitHub Desktop.
preact + AutoSizer
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
// The problem looks like a race condition, because I'm doing the following. isLoading can change pretty quickly | |
{!isLoading && <AutoSizer disableWidth>{({ height }) => <div>{height}</div>}</AutoSizer>} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment