bigmistqke
bigmistqke
SSolidJS
Created by xxttt on 11/13/2024 in #support
hook
this type of code would not reactively update on updates to signal:
function createHook(){
const [signal, setSignal] = createSignal()
return {
get value(){
return signal()
}
}
}
function Component(){
const { value } = createHook()
console.log(value)
}
function createHook(){
const [signal, setSignal] = createSignal()
return {
get value(){
return signal()
}
}
}
function Component(){
const { value } = createHook()
console.log(value)
}
as long as you keep in mind that the component will never re-run, you should be fine.
4 replies
SSolidJS
Created by xxttt on 11/13/2024 in #support
hook
const [signal, setSignal] = createSignal() is also a destructuring
4 replies
SSolidJS
Created by xxttt on 11/13/2024 in #support
hook
depends on the implementation
4 replies
SSolidJS
Created by gsoutz on 7/17/2024 in #support
Is there any examples of making a library with vite that exports a Solid.js Component.
I think I eventually went for vite library mode then bc I also needed some other vite niceties. But mb https://github.com/egoist/tsup/issues/536 can help
6 replies
SSolidJS
Created by gsoutz on 7/17/2024 in #support
Is there any examples of making a library with vite that exports a Solid.js Component.
A ye, I remember having to deal w that too.
6 replies
SSolidJS
Created by agentsmith on 10/4/2024 in #support
solid-plotly.js a new wrapper for Plotly.js
ye this seems to be a solid bug! i made a minimal reproduction here and added an issue
105 replies
SSolidJS
Created by agentsmith on 10/4/2024 in #support
solid-plotly.js a new wrapper for Plotly.js
At a concert but can't stop myself from debugging lol
105 replies
SSolidJS
Created by agentsmith on 10/4/2024 in #support
solid-plotly.js a new wrapper for Plotly.js
Ye will have a look at it myself! Is going to be easier then trying to debug through you 😅
105 replies
SSolidJS
Created by agentsmith on 10/4/2024 in #support
solid-plotly.js a new wrapper for Plotly.js
But where is the code that accessed that namespaceURI ?
105 replies
SSolidJS
Created by agentsmith on 10/4/2024 in #support
solid-plotly.js a new wrapper for Plotly.js
Where is that namespaceURI coming from 🤔
105 replies
SSolidJS
Created by abe on 10/21/2024 in #support
Confused between For and index
But there are little use cases for it. It came in handy one time where I received immutable data from another library and I didn't know about reconciled merge option.
7 replies
SSolidJS
Created by abe on 10/21/2024 in #support
Confused between For and index
There is https://primitives.solidjs.community/package/list where both index and the element are a signal
7 replies
SSolidJS
Created by agentsmith on 10/4/2024 in #support
solid-plotly.js a new wrapper for Plotly.js
Ye the linking works for me in dev but it failed when building. That trying to access on on null type error. Had to work so couldn't investigate further, will have a look at it tomorrow.
105 replies
SSolidJS
Created by agentsmith on 10/4/2024 in #support
solid-plotly.js a new wrapper for Plotly.js
a i do get an error when i build!
105 replies
SSolidJS
Created by agentsmith on 10/4/2024 in #support
solid-plotly.js a new wrapper for Plotly.js
it takes a really long time to initially load the page tho, i think something to do with [BABEL] Note: The code generator has deoptimised the styling of /Users/bigmistqke/Documents/GitHub/solid-plotly.js/packages/solid-plotly.js/dist/dev.jsx as it exceeds the max of 500KB.. maybe plotly.js should be a peer dependency, so that you don't bundle it with your own app.
105 replies
SSolidJS
Created by agentsmith on 10/4/2024 in #support
solid-plotly.js a new wrapper for Plotly.js
tried it out in a separate folder and linking still works. i m on mac.
105 replies
SSolidJS
Created by agentsmith on 10/4/2024 in #support
solid-plotly.js a new wrapper for Plotly.js
lool ye i remember that code 🤣
105 replies
SSolidJS
Created by agentsmith on 10/4/2024 in #support
solid-plotly.js a new wrapper for Plotly.js
i am not capable of reproducing the bug tho, when i do "@ralphsmith80/solid-plotly.js": "link:/../../packages/solid-plotly.js" in apps/demo/package.json it works on my end.
105 replies
SSolidJS
Created by agentsmith on 10/4/2024 in #support
solid-plotly.js a new wrapper for Plotly.js
ugh ye linking can be a real pain in the ass
105 replies
SSolidJS
Created by agentsmith on 10/4/2024 in #support
solid-plotly.js a new wrapper for Plotly.js
ur welcome!
105 replies