Cyber Grandma
Cyber Grandma
Explore posts from servers
SSolidJS
Created by Cyber Grandma on 11/23/2024 in #support
Sessions broken on external hosts ?
I need this because my app will be run locally on closed network.
14 replies
SSolidJS
Created by Cyber Grandma on 11/23/2024 in #support
Sessions broken on external hosts ?
For future reference: an option can be passed to disable secure mode
const session = await useSession<PlayerSession>({
password: Bun.env.SESSION_SECRET,
cookie: {
secure: false,
},
});
const session = await useSession<PlayerSession>({
password: Bun.env.SESSION_SECRET,
cookie: {
secure: false,
},
});
14 replies
SSolidJS
Created by Cyber Grandma on 11/23/2024 in #support
Sessions broken on external hosts ?
¯\_(ツ)_/¯
14 replies
SSolidJS
Created by Cyber Grandma on 11/23/2024 in #support
Sessions broken on external hosts ?
Well it works now
14 replies
SSolidJS
Created by Cyber Grandma on 11/23/2024 in #support
Sessions broken on external hosts ?
Yes yes. I guess I need to find a way to build for HTTP and not HTTPS
14 replies
SSolidJS
Created by Cyber Grandma on 11/23/2024 in #support
Sessions broken on external hosts ?
My assumptions were wrong. It's because of the "Secure" attribute of the cookie.
14 replies
SSolidJS
Created by Cyber Grandma on 11/20/2024 in #support
SSR failed to import "drizzle-orm/bun-sqlite"
Oh ok I forgot to add the --bun option to bun run 😂
2 replies
SSolidJS
Created by Cyber Grandma on 11/12/2024 in #support
Submission not reactive in JSX ?
Yup
3 replies
DTDrizzle Team
Created by Cyber Grandma on 11/5/2024 in #help
Filter based on join data
Thanks, that's what I ended up doing.
13 replies
DTDrizzle Team
Created by Cyber Grandma on 11/5/2024 in #help
Filter based on join data
Thanks 🫡
13 replies
DTDrizzle Team
Created by Cyber Grandma on 11/5/2024 in #help
Filter based on join data
In the docs https://orm.drizzle.team/docs/rqb#select-filters there is a where inside of the query but when I try it this option doesn't exist
13 replies
DTDrizzle Team
Created by Cyber Grandma on 11/5/2024 in #help
Filter based on join data
But I couldn't find a way to do it with query builder
13 replies
DTDrizzle Team
Created by Cyber Grandma on 11/5/2024 in #help
Filter based on join data
Fiddling around in drizzle studio demo I managed to do something like that:
db.select().from(orders).fullJoin(customers, eq(orders.customerId, customers.id)).where(eq(customers.contactTitle, "Owner"))
db.select().from(orders).fullJoin(customers, eq(orders.customerId, customers.id)).where(eq(customers.contactTitle, "Owner"))
13 replies
SSolidJS
Created by Cyber Grandma on 11/5/2024 in #support
SolidStart layout shifts using createAsync
So it would only help if I called the function multiple times during the same request, like a parent and child component both calling it ? If I understand
31 replies
SSolidJS
Created by Cyber Grandma on 11/5/2024 in #support
SolidStart layout shifts using createAsync
Anyway it seems like its deprecated but query should work the same I guess
31 replies
SSolidJS
Created by Cyber Grandma on 11/5/2024 in #support
SolidStart layout shifts using createAsync
Oh I thought so
31 replies
SSolidJS
Created by Cyber Grandma on 11/5/2024 in #support
SolidStart layout shifts using createAsync
I'm going out of scope but shouldn't the loading be instant since I use cache ?
export const getActivitySubmissions = cache(
async (params: ActivitySubmissionsParams) => {
'use server';

.....

await Bun.sleep(1000);

return {
...
};
},
'activity-submissions',
);
export const getActivitySubmissions = cache(
async (params: ActivitySubmissionsParams) => {
'use server';

.....

await Bun.sleep(1000);

return {
...
};
},
'activity-submissions',
);
I have added a Bun.sleep here just to see the loading suspense, but shouldn't it just skip thins function alltogether ?
31 replies
SSolidJS
Created by Cyber Grandma on 11/5/2024 in #support
SolidStart layout shifts using createAsync
🫡
31 replies
SSolidJS
Created by Cyber Grandma on 11/5/2024 in #support
SolidStart layout shifts using createAsync
Yeah maybe I'll add a big suspense above everything, even with multiple asyncs I guess its better than having the layout load in multiple steps
31 replies
SSolidJS
Created by Cyber Grandma on 11/5/2024 in #support
SolidStart layout shifts using createAsync
That did work, nice
31 replies