Closed kubacienciala closed 1 month ago
"@prisma/client": "5.20.0", "@prisma/react-native": "5.20.0", "expo": "~51.0.28",
Calling in expo router page:
extendedClient.mood.create({ data: { date: new Date(id), note: 'test', value: MoodEnum.BAD, }, });
Calling inside component file which is a child of the same page:
extendedClient.mood.useFindMany({ where: { date: { gte: weeksList[0][0].date, lte: weeksList[weeksList.length - 1][6].date, }, }, });
And got: RenderError Invalid time value
If I call these functions in separate screens everything is working fine and doesn't crash.
Even if I will change date field to string and doesn't filter it later, it will crash if I will fire both functions from one screen
Calling in expo router page:
Calling inside component file which is a child of the same page:
extendedClient.mood.useFindMany({ where: { date: { gte: weeksList[0][0].date, lte: weeksList[weeksList.length - 1][6].date, }, }, });
And got: RenderError Invalid time value
If I call these functions in separate screens everything is working fine and doesn't crash.
Even if I will change date field to string and doesn't filter it later, it will crash if I will fire both functions from one screen