matulla_ffm
i expect a refetch with new data when the value of "firma()" changes - but this don't work.
export function routeData({ params }) {
return createServerData$(
() => prisma.DP_T_Mitarbeiter.findMany({ where: { Betrieb: firma() } }),
{ key: () => ["DP_T_Mitarbeiter", firma()] }
);
}
What do i missing?
4 replies