with useDataGrid how to omit query args

how to not add ?& to /resource?& when using useDataGrid
K
kapa.ai67d ago
Hi @Joe Gaffney. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Hmm, I don't know enough to give you a confident answer yet. However, you can refer to the useDataGrid documentation (https://refine.dev/docs/ui-integrations/material-ui/hooks/use-data-grid) for more information. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
K
kapa.ai67d ago
<@422289470487003153> kapa.ai is still learning and improving, please let us know how it did by reacting below
S
sensitive-blue67d ago
@kapa.ai is extend from use table how would i omit ?& on that
K
kapa.ai67d ago
Let me check the knowledge base for you. One moment! :books: ---------------------- Based on the information provided in the extracts, it seems that the issue of ?& being added when calling the API in useTable is related to the data provider. The request is generated by the data provider, and the ?& is added without checking the existence of queries and filters. The issue was identified in this line of code: https://github.com/refinedev/refine/blob/fba8f7370057fa8d4c27de6b9432fec4ccada268/packages/simple-rest/src/provider.ts#L50 The solution would involve manually adding ? and/or & depending on the existence of queries and filters. However, the specific implementation would depend on the data provider you are using and the structure of your code. Unfortunately, the extracts do not provide a direct solution or code example for this issue. For more detailed guidance, you may want to refer to the Refine useTable documentation (https://refine.dev/docs/ui-integrations/ant-design/hooks/use-table/) or seek help from the Refine community. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
K
kapa.ai67d ago
<@422289470487003153> kapa.ai is still learning and improving, please let us know how it did by reacting below
S
sensitive-blue67d ago
@kapa.ai yes i am using the simpleRest data provider how do i remove ?& from that
K
kapa.ai67d ago
Let me check the knowledge base for you. One moment! :books: ---------------------- Based on the information from the GitHub issue discussion, the ?& is added in the simple-rest data provider's code. The issue arises from this line: https://github.com/refinedev/refine/blob/fba8f7370057fa8d4c27de6b9432fec4ccada268/packages/simple-rest/src/provider.ts#L50 A quick solution suggested in the discussion is to swizzle the data provider and fix it locally. Swizzling allows you to override the default behavior of the data provider. You can find more information on how to swizzle a data provider in the Refine documentation (https://refine.dev/docs/tutorial/understanding-dataprovider/swizzle/#how-do-you-use-swizzle-to-create-an-data-provider). However, please note that this is a workaround and the actual solution would involve modifying the data provider's code to add ? and/or & depending on the existence of queries and filters. This change would need to be made in the Refine codebase itself. If you're comfortable with contributing to open-source projects, the Refine team has indicated that they're open to contributions for this issue. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
K
kapa.ai67d ago
<@422289470487003153> kapa.ai is still learning and improving, please let us know how it did by reacting below
S
sensitive-blue67d ago
@kapa.ai do you have a link to the issue disccusion
K
kapa.ai67d ago
Let me check the knowledge base for you. One moment! :books: ---------------------- I'm sorry for the confusion, but the extracts provided do not contain a link to a specific issue discussion about removing ?& from the simple-rest data provider in Refine. For more detailed guidance, you may want to refer to the Refine documentation (https://refine.dev/docs/) or seek help from the Refine community on GitHub Discussions (https://github.com/refinedev/refine/discussions) or Discord (https://discord.gg/refine). ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
K
kapa.ai67d ago
<@422289470487003153> kapa.ai is still learning and improving, please let us know how it did by reacting below
More Posts
filterhow to filter data without using a table.Pagination with @refinedev/graphql providerHi Everyone. I am building some CRUD pages in our product and found Refine to be a great fit for ouhow to add a custom button in the Show header buttons along with the refresh buttonI have a show view with its buttons for delete, go back and refresh. I want to add a new one to openClear cachehow to clear cache ?useStepsFormHi, how can I use useStepsForm, with custom input fields without register, if some of the data I neeAccess control for create Button doesnot work<CreateButton accessControl={{ enabled: false }} type="primary" ghost icon={<PlusOutlined />}> how to translate the sider// Package Imports import React from 'react'; import { ThemedSiderV2, type RefineThemedLayoutV2Sautocomplete hookI am using mui and i want to send a request and get a new value when i change the value of auto comphow to re-style savebuttonprops?how to re-style savebuttonprops?Resource list response in JSEND FormatI have backend which do not return list as json array in the http response. The server send it in JCreating a project with example pages doesn't workHello, I have tried to create a project using pnpm. I selected REST API, and installed packages withCheck gets called after redirectTo /loginWhen I call my logout function and redirect user to /login, check() from authProvider gets called evExpose local IPHow to expose IPHow can I pass the changed values in child props to the parent state?children props ``` export const EditFirstEventProps = ({ items, id }: IEditFirstEventProps) => { Customizable listHi, How can i hide/unhide columns in list, and also enable/disable columns in list (refine with viFilters errorHi, how can I use filters from useTable together with special characters (like # for example). When I would create a message in #ask-any-I would create a message in #ask-any-question but I don't know if this would fit there... It takes Refine CRM TutorialDo you have an estimated timeline for the new tutorial in the documentation mentioned here: https://anyways i can make logout quicker ?everything working fine but after 401 it takes too much to logout user ``` logout: async () => {Patch will be processed after Put transmission.export const EditProps = ({ items, id, point }: IEditPageProps) => { const [itemsState, setItemsSt