Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Once/When option? #76

Open
ericclemmons opened this issue Nov 15, 2016 · 1 comment
Open

Once/When option? #76

ericclemmons opened this issue Nov 15, 2016 · 1 comment

Comments

@ericclemmons
Copy link

I'm sure this isn't how you'd like to ideally handle this, but I'm using this project within react-storybook and noticed that when I resize the window, the component constantly resizes.

I don't know if this is due to margins/padding calculation or what.

Basically, the usage I'm going for is waiting for width/height calculation for the initial render of the component, then not worrying about the resize event at all anymore. (i.e. the size is only necessary for initial rendering of the layout)

@ctrlplusb
Copy link
Owner

An interesting suggestion! I am holiday'ing with the fam at the moment, but will give this some thought after the 26th.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants