bigmistqke 🌈
Is there a way to access children props?
Otherwise I usually create a context on the parent (the Editor in this case) and provide a map to which each child can add itself (its ref) onMount and remove itself onCleanup.Doesn't this fail when there is conditional rendering and you count on order of the children?
45 replies
Is there a way to access children props?
you can do it with a WeakMap: https://playground.solidjs.com/anonymous/06bf6c6c-3177-43c4-9680-30f9239f9f55
45 replies