How to bind element width, height to signal?

My <div>'s size will be changed by parent or css class. I want to bind div's offsetWidth, offsetHeight to signal inside component. Then I want to do something with the signals. How can I do it? I know there is 'ref' attribute. But does ret update the signal when offsetWidth, offsetHeight is changed, too?
16 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
musiclover
musicloverOP2y ago
@1.l Is solid-primitives worth to install? Do most solid developers use it? Is it official extension? I have a experience, some library made by not offical team broken someday..
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
musiclover
musicloverOP2y ago
How about size? Is it small?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
musiclover
musicloverOP2y ago
I see it's all seperate packages, Is there no ways just install 'npm install solid-packages' ? then 'import { something } from 'solid-packages'
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
musiclover
musicloverOP2y ago
I really like liquid & aquaspirit. I always see you guys I make a questions.. You guys are life savor...
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
musiclover
musicloverOP2y ago
Are you just a user who use Solid like me? or ecosystem team?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
musiclover
musicloverOP2y ago
I really love SolidJS. I want to stick to Solid for long time. Do you think I can use Solid next 5 years? I just started to use Solid for 5 days agao Sorry for bad english
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
musiclover
musicloverOP2y ago
I've used Svelte, But I saw whenever I add new svelte Component, it increases bundle size, while Solid made much more small bundle size, because it re-uses function, while Svelte copy the function entirely..
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
musiclover
musicloverOP2y ago
Thanks liquid, aquaspirit. I just started to use createElementSize from primitives. I already love it... it's much better than creating my own... I trust solid community..It's suprisely easy to use.. The idea to make non-reactive properties to make reative properties are amazing..
Want results from more Discord servers?
Add your server