Jonathan
Explore posts from serversSetting up Deno 2.0 with Fresh and TypeORM
I am trying to setup my first deno project ever using Fresh and TypeORM. I have setup 2 files
A data.ts
And a
user.model.ts
I am getting a few errors in the user.model.ts
, I am not sure if I am importing type orm correctly.
I am also not sure how to properly install the mssql
properly for deno, do I do that in the deno.json? If so how?
And last, I am getting an error of an uncaught promise in Reflect.getMetadata.
How do I get around this?4 replies
RRefine
•Created by genetic-orange on 9/4/2024 in #ask-any-question
Closing modal after save, gives warning that you are leaving the page.
I have a modal like this:
When I hit save, it is giving the "Are you sure you want to leave? You have unsaved changes." alert despite actually saving.
6 replies
RRefine
•Created by afraid-scarlet on 8/11/2024 in #ask-any-question
Enabling Sorting on Antd Table
How do you set Antd sorting on a table? We are using Antd with Supabase and refine.
13 replies
RRefine
•Created by xenial-black on 8/6/2024 in #ask-any-question
Expo Router integration
Is there Expo Router integration?
4 replies
RRefine
•Created by optimistic-gold on 8/6/2024 in #ask-any-question
Better Error notifications on Supabase Provider
How can I get a more user friendly message from supabase database provider for things like a unique constraint error message? For example I get this message now:
But would be nice to give something specific to the field or at least friendly to the user.
16 replies
RRefine
•Created by cloudy-cyan on 8/5/2024 in #ask-any-question
How to Change Page Title From Refine
I am using the CRM example as a starting point but I can't find how to change the Page title from having "Refine" in it. It is using the DocumentTitleHandler but I can't seem to figure out how to change it to our app name.
5 replies
RRefine
•Created by graceful-beige on 8/2/2024 in #ask-any-question
Starting a new Project with Refine, picking React or Next
I am starting a new project and planning on using Refine. It is a classic CRUD app with hundreds of types of datasources. I am also planning on a react-native app also.
My question is this, would you start a new project with React-Vite and monolith so that you can share data sources between the react-native and react app.
I have considered NextJS and have a version in NextJS. But I end up highly relying on client side code in the NextJS app.
So my question is this:
- If the long term goal is to have a react and expo based app, is it worth having a mono-repo with a traditional react and expo app?
I am just thinking this may seem more consistent between the expo and react apps vs an expo and nextjs app. Thoughts?
5 replies
PPrisma
•Created by Jonathan on 6/24/2024 in #help-and-questions
Ensuring Filtering if variable is undefined
I have an application that is a multi-tenant app where we always filter by
Basically I am curious if there is ways to guarantee that no filter leaks because of a value being undefined.
TenantId
, so for example we do queries like this:
While obviously I need to check the tenantId
but from a general question, when a a variable sometimes is undefined, it completely ignores that part of query. Some of this is just the nature of how JS objects are built.
But I am curious if there is a way to guarantee that the where statement never ignores a variable. I think this is where most query builder alternatives handle by passing variables into a method.Basically I am curious if there is ways to guarantee that no filter leaks because of a value being undefined.
6 replies
PPrisma
•Created by Jonathan on 6/12/2024 in #help-and-questions
Connection Pooling issues with Azure SQL
I continue to see issues in our error logs in production with prisma using Azure SQL:
The connection string looks like this:
This is in a nextjs app that we are using it.
8 replies
TRPC completely broke
I have a project I haven't touched in only about a week, it was working and now every request over TRPC is broke. I have tried everything I can think of and I get responses like the attachment
Here is part of my package.json
Everything related to api requests throw an error, but if it is on the server the db is running fine and such. This was an app that was created with the T3 Stack. I am out of ideas, anywhere I might should look?
5 replies
Error Accessing a User in Blazor
I am trying to setup my first Blazor project after being away from dotnet for a while to chase the javsacript world and I am completely stuck on something simple.
I have created a new blazor app with the template and enabled Individual Accounts for auth. I am simply trying to get the current user information for the home screen and I get an error :
The browser console has the error:
I have tried to do everything I can find about this. I have tried changing render modes, etc. I am at a complete loss.
The home page is simply this (which I based on the sample account pages)
I have put the entire repo here:
https://github.com/jmarbutt/ExampleIssues/tree/main/ExampleIssues
26 replies
TTCTheo's Typesafe Cult
•Created by Jonathan on 2/4/2024 in #questions
T3 Stack with React Native and Multiple NextJS with Turbo & Clerk
So I am building a project that has 3 distinct NextJS applications, 1 react native application. I have set up a project with a simple structure like this:
I created all 3 of the next apps with
create-t3-app
and they are working great and are pretty isolated TRPC instances. So they each have their own routers and such which I could consolidate. But my question is what is the best pattern for introducing the ReactNativeApp into the equation. It will basically need to use the same TRPC service as NextApp1
for example. So here are my actual questions:
- Should I move the routes for NextApp1
into a shared packages/common
or some other package name?
- When I do that, what do I need to change in the NextApp1 to handle this?
- Would I just move the react.tsx
and shared.tsx
into the shared package?
- I am using Clerk, how do I ensure it is getting passed into TRPC in the react native code?
Is there a good example out there of all this?6 replies
T3 Stack TRPC used in Server Actions
Is there issues using the server calls of TRPC in a nextjs server action? I am seeing weird issues when running it in production that don't happen when running it local. I am trying to narrow it down but looking for a high level of "this shouldn't be an issue", or this could be an issue.
I think it may be related to my user context depending on cookies, the more I have looked everything that is not in server actions seems to work but server actions seem to be flakey in production.
2 replies
useQuery never returning or hitting API
I have something off in my configuration, i copied most of the files from the
❯ npm create t3-app@latest
example app to add to an exisitng app. I am trying to call the simple post.hello
and i tis working on the server. but when I call it on the client side like:
It never hits the api or gets out of the loading state, what am I missing?2 replies
Type 'QueryClient' is missing the following properties from type 'QueryClient': queryCache, mutation
I am trying to setup a new project and doing my first client side query and getting this error:
This is my react.tsx
it is complaining at :
And this is my root layout:
What am I missing? The server side piece is working when querying from next.
6 replies
Specify invalid queries from the server?
I have a TRPC app that I am writing and there are times I would like to invalidate queries on the client from a mutation on the server.
I am not talking web sockets or anything like that, but just a standard way to invalidate multiple queries from the server just as part of the return from a mutation
Is that possible?
2 replies