Nicolas
Explore posts from serversRRefine
•Created by conscious-sapphire on 2/4/2024 in #ask-any-question
Error Creating New Refine App
Hello all,
I am running into errors trying to start a new refine app.
Here is what I did:
npm create refine-app@latest
When running npm run dev
I get this error:
I am not sure what depends on graphql, so i don't want to remove it.
Seeing as this is just a simple refine app created from the official CLI, I am assuming this should work out of the box, but I may be wrong based on my configuration.
Thanks!5 replies
RRefine
•Created by fascinating-indigo on 8/28/2023 in #ask-any-question
Add Type to useForm
How do I make the object that I am manipulating, with the help of useForm hook, type safe?
For instance, I know I can do things like:
But how do i ensure
email
is type-safe with respect to some interface? For instance, I have a user
interface that I would like to apply to my useForm, so that way I make sure I only perform the proper useForm actions on the fields that exist for user
5 replies
RRefine
•Created by harsh-harlequin on 8/22/2023 in #ask-any-question
MUI Inferencer Can't Detect Object Inside Entity
5 replies
RRefine
•Created by absent-sapphire on 8/21/2023 in #ask-any-question
Error With MUI Inferencer
9 replies
RRefine
•Created by exotic-emerald on 8/19/2023 in #ask-any-question
How to Handle Routes for Resources that are Related
I have organizations that have many deployments and users, and deployments have many devices
How sould I structure my resources routes in the <Refine> component under the resources property to handle this?
Should I do something like for uses:
or should I do:
Can i use the same
:id
notifier, or does it need to be different if its used multiple times within the same route?6 replies
RRefine
•Created by deep-jade on 8/19/2023 in #ask-any-question
Setup Relationships Between Resources for Inferencer
So my app has an organization resource and a deployment resource; deployments belong to an organization, and an organization can have many deployments.
Now, when a user is creating a deployment, there needs to be a select dropdown where the user can select what organization this deployment belongs to.
How can I establish this kind of relationship between resources so the inferencer can properly generate the create/edit forms for the deployment to allow this relationship?
18 replies
RRefine
•Created by conscious-sapphire on 8/19/2023 in #ask-any-question
Errors When Trying to Delete a Resource
Ok, so in my List view, I added column actions for each row, where one of the actions is to delete that row.
I have my custom dataProvider setup with a deleteOne that takes in the parameters and sends out an API request to delete the request item.
I have also enabled canDelete in my App
For some reason though, when i click the delete action, I get the following errors in my console and deleteOne is never called:
and
32 replies
RRefine
•Created by correct-apricot on 8/18/2023 in #ask-any-question
404 Error Create Page
So I created a new route for my organizations for the create resource:
And I created a create.tsx file under my
pages/organization
folder, so it's at pages/organizations/create.tsx
and this is the code for it:
But when i navigate to my organizations/create in my URL, I get a 404 error. But my organization list works just fine.14 replies
RRefine
•Created by harsh-harlequin on 8/18/2023 in #ask-any-question
What type is error for onError within AuthProvider?
I have an onError function in my custom authProvider.ts:
But I would like to give the error a type so i can use it to handle various situations, what is the type that is used for this error that invokes this
onError
function?21 replies
RRefine
•Created by grumpy-cyan on 8/18/2023 in #ask-any-question
Why does my List page generate so many queries?
16 replies
RRefine
•Created by rare-sapphire on 8/18/2023 in #ask-any-question
Problems Using Axios to Query from AWS API Gateway
6 replies
RRefine
•Created by foreign-sapphire on 8/17/2023 in #ask-any-question
Add Custom Fields to AuthPage
Here is the AuthPage for the Register Route, and I would like to add password confirmation so the user has to confirm their password, and I would also like to put an additional field that has the organization Id, since my users will need that when signing up.
How could I add that?
10 replies