Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Add support for useLayoutEffect via exec.layout API #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

chaance
Copy link

@chaance chaance commented Jul 27, 2021

This PR adds an API for calling certain effects with useLayoutEffect. This should probably be used very carefully and rarely, but in certain cases it is useful.

API should be identical to calling exec directly.

I didn't add documentation yet but am happy to contribute there as well in a follow-up unless someone beats me to it.

Should be pretty straight forward, though the types are getting a bit verbose so let me know if you have any questions!

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

Successfully merging this pull request may close these issues.

None yet

1 participant