Skip to content

Add support for useLayoutEffect via exec.layout API#32

Open
chaance wants to merge 2 commits intodavidkpiano:masterfrom
chaance:master
Open

Add support for useLayoutEffect via exec.layout API#32
chaance wants to merge 2 commits intodavidkpiano:masterfrom
chaance:master

Conversation

@chaance
Copy link
Copy Markdown

@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 join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant