reflex-dom icon indicating copy to clipboard operation
reflex-dom copied to clipboard

Unification of mount state PRs

Open ali-abrar opened this issue 5 years ago • 8 comments

ali-abrar avatar Apr 02 '19 21:04 ali-abrar

This contains #271 and #273 so far. #273 uses a Dynamic mount state approach that has some performance overhead. #272 provides an event interface that lets you know when something is mounted, which doesn't have the performance overhead.

The options now are: (a) Merge #272 on top of this and switch to the Event interface, or, (b) Don't merge #272 and incur the penalty.

Regardless of which of these options we select, the next step will be to merge develop into this.

I'm going to pursue option (a) - it gets us most of the benefit without the cost.

ali-abrar avatar Apr 02 '19 21:04 ali-abrar

I agree that Event-based API seems sufficient for the cases I've encountered. I can't recall if it includes "Unmounted" event? If so we can create the dynamic ourselves when needed.

3noch avatar Apr 02 '19 21:04 3noch

Is someone still working on this?

treeowl avatar Jun 26 '19 20:06 treeowl

It was paused as we fixed some hydration issues. I'll have a look at the conflicts with develop and hopefully get this merged very soon.

ali-abrar avatar Jul 24 '19 14:07 ali-abrar

Any recent updates on this? I'm attempting to implement a wrapper around the Material Design Components for the web https://material.io/develop/web/ and am a bit stuck figuring out how to handle calling the clean up methods on the components that need them.

purefn avatar Jan 21 '20 03:01 purefn

If someone were to pick this up, what is left to do? Obviously resolve merge conflicts. If it were me I would also add an unmount event. Is there anything else that needs to be done?

purefn avatar Jan 22 '20 02:01 purefn

Are there any update on this?

kokobd avatar Mar 23 '21 01:03 kokobd

ping. It's currently difficult interface with several of the web-API methods (eg: https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView) because there's no way to check if something actually exists in the DOM.

o1lo01ol1o avatar Oct 04 '23 08:10 o1lo01ol1o