lvl_up
Best Practice for ContextProvider - Store vs Signals
I'd would opt for the store option. Stores can provide a much simpler syntax/experience to work with multiple properties like you have here. Stores also provide a lot of useful utility functions https://docs.solidjs.com/references/api-reference/stores/store-utilities
It's also much easier to add a property to the store than having to create a new signal for each
4 replies
Universal renderer createElement isn't running
I was able to get it working eventually. I needed to set a renderer in the solidPlugin config.
My only issue now, is that typescript is throwing an error on the renderers option. The error says it's not a known property.
12 replies
Universal renderer createElement isn't running
It looks like it might have to do with a missing babel preset configuration. It's mentioned on the universal readme that it's need. I'll see if I can look more into that.
https://github.com/solidjs/solid/tree/main/packages/solid/universal
12 replies