12 Replies
I have an instance that uses a signal based value like so
(using the signal in place no function makes 0 diff)
If I'm being honest I moved this component to its own package and the compiler literally breaks like half of solid's features but I can't find anything about bundling for solid so I slimmed down and still somehow something so simple is broken
You have to read the icon in the first argument of
createResource
and do the fetching in the second
So it would be like this instead
This is for when you want the resource to rerun based on some signal(s)I thought I saw something similar to that but I was doing it incorrectly, thanks
However somehow this approach still does not work
I can only assume by now that however I am compiling / bundling my solid component, that is breaking it?
Could be. If you're able to reproduce it without the bundling either in the playground or in your project, then it could be something else
Yeah even with createAsync it doesn't work, so I think it's the bundler but I have no clue how to change Rollup...
Here is the repository if anyone can help with this. Thanks!
rip
I'd be curious to see what
isVisible
and userVisibility
are, the package itself looks fine.
On another note, have you seen https://github.com/unplugin/unplugin-icons ?GitHub
GitHub - unplugin/unplugin-icons: 🤹 Access thousands of icons as...
🤹 Access thousands of icons as components on-demand universally. - unplugin/unplugin-icons
I did actually but I prefer the way that my component works
Just a personal preference I would want to have the option for, mainly small projects
Also allows more dynamic usecaes that approach does not.
Hey @ⱼ ₒ ₑ any luck with your problem? If you want, happy to hop on a video chat where we can pair on it
Sorry for the late response but I decided I'll just have to delay this project
Even with slimming down it seemed to still cause crazy bugs, and even when I just used tsc to transpile I couldn't get it to work so I just bit the bullet and started to use unplugin-icons
It's really a shame because I keep running into times I would love to have a component like this but oh well
Thanks for offering though.
So I did this yesterday and it works:
So probably there's an issue with
isVisible(userVisibility)
as Brendonovic mentioned.You're just pulling from src and not compiling it though right? I would expect that to work
I don't really care so much about compilation it's just that I don't know how to have a proper exported package otherwise
Yes, imported directly from src.