Cyber Grandma
Cyber Grandma
Explore posts from servers
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
SSolidJS
Created by Cyber Grandma on 11/5/2024 in #support
SolidStart layout shifts using createAsync
Mmh I see
31 replies
SSolidJS
Created by Cyber Grandma on 11/5/2024 in #support
SolidStart layout shifts using createAsync
For my pagination I use those:
<Pagination
class="*:join *:inline-flex"
count={pagination()?.totalPages ?? 10}
page={pagination()?.page ?? 1}
onPageChange={setPage}
siblingCount={2}
itemComponent={(props) => (
<Pagination.Item
class="join-item btn aria-[current=page]:btn-active"
page={props.page}
>
{props.page}
</Pagination.Item>
)}
ellipsisComponent={() => (
<Pagination.Ellipsis class="join-item btn btn-disabled">
...
</Pagination.Ellipsis>
)}
>
<Pagination.Previous class="join-item btn">
<RiArrowsArrowLeftDoubleFill size={18} />
</Pagination.Previous>
<Pagination.Items />
<Pagination.Next class="join-item btn">
<RiArrowsArrowRightDoubleFill size={18} />
</Pagination.Next>
</Pagination>
<Pagination
class="*:join *:inline-flex"
count={pagination()?.totalPages ?? 10}
page={pagination()?.page ?? 1}
onPageChange={setPage}
siblingCount={2}
itemComponent={(props) => (
<Pagination.Item
class="join-item btn aria-[current=page]:btn-active"
page={props.page}
>
{props.page}
</Pagination.Item>
)}
ellipsisComponent={() => (
<Pagination.Ellipsis class="join-item btn btn-disabled">
...
</Pagination.Ellipsis>
)}
>
<Pagination.Previous class="join-item btn">
<RiArrowsArrowLeftDoubleFill size={18} />
</Pagination.Previous>
<Pagination.Items />
<Pagination.Next class="join-item btn">
<RiArrowsArrowRightDoubleFill size={18} />
</Pagination.Next>
</Pagination>
31 replies
SSolidJS
Created by Cyber Grandma on 11/5/2024 in #support
SolidStart layout shifts using createAsync
I only changed this :
ts
const pagination = () => data.latest?.pagination;
const submissions = () => data.latest?.submissions;
ts
const pagination = () => data.latest?.pagination;
const submissions = () => data.latest?.submissions;
Following your recommendations
31 replies
SSolidJS
Created by Cyber Grandma on 11/5/2024 in #support
SolidStart layout shifts using createAsync
The suspense is still there
31 replies
SSolidJS
Created by Cyber Grandma on 11/5/2024 in #support
SolidStart layout shifts using createAsync
Nah, it just wait before it has finished loading on my side
31 replies
SSolidJS
Created by Cyber Grandma on 11/5/2024 in #support
SolidStart layout shifts using createAsync
Im wondering also if I should at all use a Suspense to show loading since the page won't be shown before it has finished loading the createAsync server side
31 replies