haunted
haunted copied to clipboard
Add useLayoutEffect
This is used to synchronously cause an effect directly after rendering. This could be useful for doing adoptedStylesheets stuff.
What would this correspond to in the custom element lifecycle?
Likely this would happen immediately after render(templateResult) is called.
How would this work with LitElement integration? Should LitElement callback into Haunted in updated()?
With the new State API there's a state.callEffects() for useEffect hooks, so I imagine something similar would be added for this.
Fixed by #136 ?