Gabriel Viol
Gabriel Viol
SSolidJS
Created by Gabriel Viol on 5/29/2024 in #support
Error: Hydration Mismatch.
No description
1 replies
SSolidJS
Created by Gabriel Viol on 5/16/2024 in #support
Styled-components or Tailwind?
Is there any significant difference in page performance when using styled-components and Tailwind CSS?
1 replies
SSolidJS
Created by Gabriel Viol on 5/13/2024 in #support
Reactivity of my component
I'm having problems with the reactivity of my component. In this example, the 'currentCplId' variable inside the createEffect is always updated, but outside of it, it is not updated. Why? And how to fix it? Can someone help me?
import { pageStore } from '@store/index'
const Component = (props) => {
const [ cpdId, setCplId ] = createSignal(pageStore.pageSettings.cplId)
createEffect(() => {
setCplId(pageStore.pageSettings.cplId)
console.log(cplId())
})
console.log(cplId())
}
import { pageStore } from '@store/index'
const Component = (props) => {
const [ cpdId, setCplId ] = createSignal(pageStore.pageSettings.cplId)
createEffect(() => {
setCplId(pageStore.pageSettings.cplId)
console.log(cplId())
})
console.log(cplId())
}
10 replies
SSolidJS
Created by Gabriel Viol on 5/9/2024 in #support
Computations created outside a `createRoot` or `render` will never be disposed
No description
11 replies