Starwort
Starwort
SSolidJS
Created by joemoe on 5/29/2024 in #support
Are Record types a bad type for using stores in Solid?
const onRemove = (id: string) => {...}
...
<li onClick={() => onRemove(state().id)}>
const onRemove = (id: string) => {...}
...
<li onClick={() => onRemove(state().id)}>
This looks like a good place for Solid's alternative call syntax:
const onRemove = (id: string) => {...}
...
<li onClick={[onRemove, state().id]}>
const onRemove = (id: string) => {...}
...
<li onClick={[onRemove, state().id]}>
5 replies
SSolidJS
Created by Starwort on 5/25/2024 in #support
Is there a good way to force Solid to fully rerender a component when its props change?
This looks good, thanks!
3 replies
SSolidJS
Created by mrVinicius on 3/28/2024 in #support
Restricte route by user role, possibly a middleware?
IMO there's no point putting time into improving the UX of an operation that well-behaved users, by definition, can never encounter
14 replies
SSolidJS
Created by mrVinicius on 3/28/2024 in #support
Restricte route by user role, possibly a middleware?
And given that if they're loading a protected route they shouldn't have access to anyway they're not behaving, does it really matter if they get a slight FOUC?
14 replies
SSolidJS
Created by mrVinicius on 3/28/2024 in #support
Restricte route by user role, possibly a middleware?
So them (partially) loading a protected route is completely fine
14 replies
SSolidJS
Created by mrVinicius on 3/28/2024 in #support
Restricte route by user role, possibly a middleware?
In which case your component trying to load before the redirect is entirely unimportant, given that a well-behaved user can't get there anyway
14 replies
SSolidJS
Created by mrVinicius on 3/28/2024 in #support
Restricte route by user role, possibly a middleware?
Ok so your server is already doing validation to make sure that the client can't do anything it shouldn't, yes?
14 replies
SSolidJS
Created by Starwort on 3/29/2024 in #support
Solid-CLI won't create any project
Presumably the fix for this is for upstream begit to try refetching the file if the cached version is corrupt
47 replies
SSolidJS
Created by Starwort on 3/29/2024 in #support
Solid-CLI won't create any project
The 'something went wrong' error is just as unhelpful as always, though
47 replies
SSolidJS
Created by Starwort on 3/29/2024 in #support
Solid-CLI won't create any project
@Tommypop seems like begit doesn't actually try to verify the cached file in any way, then crashes if it was corrupted (seems like mine was unexpectedly truncated)
47 replies
SSolidJS
Created by Starwort on 3/29/2024 in #support
Solid-CLI won't create any project
I wonder how that happened
47 replies
SSolidJS
Created by Starwort on 3/29/2024 in #support
Solid-CLI won't create any project
When I removed the begit cache and tried again it worked
47 replies
SSolidJS
Created by Starwort on 3/29/2024 in #support
Solid-CLI won't create any project
Weird, it was a corrupted cache
47 replies
SSolidJS
Created by Starwort on 3/29/2024 in #support
Solid-CLI won't create any project
This is the relevant bit though lol
47 replies
SSolidJS
Created by Starwort on 3/29/2024 in #support
Solid-CLI won't create any project
No description
47 replies
SSolidJS
Created by Starwort on 3/29/2024 in #support
Solid-CLI won't create any project
Just the end:


St [ZlibError]: zlib: unexpected end of file
at jr.write (file:///home/starwort/.npm/_npx/3afe89fd084d6a83/node_modules/@begit/cli/dist/index.js:24:22744)
at jr.flush (file:///home/starwort/.npm/_npx/3afe89fd084d6a83/node_modules/@begit/cli/dist/index.js:24:22207)
at jr.end (file:///home/starwort/.npm/_npx/3afe89fd084d6a83/node_modules/@begit/cli/dist/index.js:24:22294)
at EventEmitter.end (file:///home/starwort/.npm/_npx/3afe89fd084d6a83/node_modules/@begit/cli/dist/index.js:26:31381)
at Hs.end (file:///home/starwort/.npm/_npx/3afe89fd084d6a83/node_modules/@begit/cli/dist/index.js:24:14170)
at [emitEnd2] (file:///home/starwort/.npm/_npx/3afe89fd084d6a83/node_modules/@begit/cli/dist/index.js:24:19376)
at [emitEnd] (file:///home/starwort/.npm/_npx/3afe89fd084d6a83/node_modules/@begit/cli/dist/index.js:24:19235)
at gi.emit (file:///home/starwort/.npm/_npx/3afe89fd084d6a83/node_modules/@begit/cli/dist/index.js:24:18618)
at gi.emit (file:///home/starwort/.npm/_npx/3afe89fd084d6a83/node_modules/@begit/cli/dist/index.js:26:22281)
at [maybeEmitEnd] (file:///home/starwort/.npm/_npx/3afe89fd084d6a83/node_modules/@begit/cli/dist/index.js:24:18359) {
code: 'Z_BUF_ERROR',
errno: -5,
recoverable: false,
file: '/tmp/.begit/cache/solidjs-templates-924ee8359dc908c3ca3bd622c0c32dd2d666c78e.tar.gz',
tarCode: 'TAR_ABORT'
}


St [ZlibError]: zlib: unexpected end of file
at jr.write (file:///home/starwort/.npm/_npx/3afe89fd084d6a83/node_modules/@begit/cli/dist/index.js:24:22744)
at jr.flush (file:///home/starwort/.npm/_npx/3afe89fd084d6a83/node_modules/@begit/cli/dist/index.js:24:22207)
at jr.end (file:///home/starwort/.npm/_npx/3afe89fd084d6a83/node_modules/@begit/cli/dist/index.js:24:22294)
at EventEmitter.end (file:///home/starwort/.npm/_npx/3afe89fd084d6a83/node_modules/@begit/cli/dist/index.js:26:31381)
at Hs.end (file:///home/starwort/.npm/_npx/3afe89fd084d6a83/node_modules/@begit/cli/dist/index.js:24:14170)
at [emitEnd2] (file:///home/starwort/.npm/_npx/3afe89fd084d6a83/node_modules/@begit/cli/dist/index.js:24:19376)
at [emitEnd] (file:///home/starwort/.npm/_npx/3afe89fd084d6a83/node_modules/@begit/cli/dist/index.js:24:19235)
at gi.emit (file:///home/starwort/.npm/_npx/3afe89fd084d6a83/node_modules/@begit/cli/dist/index.js:24:18618)
at gi.emit (file:///home/starwort/.npm/_npx/3afe89fd084d6a83/node_modules/@begit/cli/dist/index.js:26:22281)
at [maybeEmitEnd] (file:///home/starwort/.npm/_npx/3afe89fd084d6a83/node_modules/@begit/cli/dist/index.js:24:18359) {
code: 'Z_BUF_ERROR',
errno: -5,
recoverable: false,
file: '/tmp/.begit/cache/solidjs-templates-924ee8359dc908c3ca3bd622c0c32dd2d666c78e.tar.gz',
tarCode: 'TAR_ABORT'
}
47 replies
SSolidJS
Created by Starwort on 3/29/2024 in #support
Solid-CLI won't create any project
Npx does this:
47 replies
SSolidJS
Created by Starwort on 3/29/2024 in #support
Solid-CLI won't create any project
No description
47 replies
SSolidJS
Created by Starwort on 3/29/2024 in #support
Solid-CLI won't create any project
(bunx was not fine, but npx crashed)
47 replies
SSolidJS
Created by Starwort on 3/29/2024 in #support
Solid-CLI won't create any project
I don't have pnpx, is bunx fine?
47 replies