R
Refine

ask-any-question

Way to identify the non-resource pages.

Bbroad-brown2/7/2023
Is there any we can identify the dashboard page when shown? for example we can identify a resource page with useResource hook when it appears in the page.
Cconscious-sapphire2/7/2023
| refine
`` component is the entry point of a refine app. It is where the highest level of configuration of the app occurs.
Bbroad-brown2/7/2023
this is for a custom dashboard page. its not what I wanted. actually I am working on this issue. https://github.com/refinedev/refine/issues/2810
GitHub
[FEAT] Dynamic window title ยท Issue #2810 ยท refinedev/refine
Is your feature request related to a problem? Please describe. It would be great if each page could have an auto-generated and custom title. Example, For the Posts resource dashboard -> Dash...
Bbroad-brown2/7/2023
I am able to customize the title for resource pages. but not for the dashboard page, inside RouterProvider
Cconscious-sapphire2/7/2023
Sorry for misunderstand โšก Let's discuss with core team and back to you ๐Ÿš€
Bbroad-brown2/7/2023
sure ๐Ÿ‘
Cconscious-sapphire2/7/2023
We talked about this with the core team. We cannot detect that we are currently on the dashboard page. This page is being created by the user can use the useDocumentTitle hook. Also, we will release a new refine4 version. (https://github.com/orgs/refinedev/projects/2/views/1?pane=issue&itemId=19438576) In this version routerProvider will be removed. It will be recommended to use this hook directly for the dashboard.
Bbroad-brown2/7/2023
ok understood.
Bbroad-brown2/7/2023
I already created a pr for handling the custom page title for resource pages in react-router-v6. it's still in progress. Can you please take a look at it whether I am going right or wrong https://github.com/refinedev/refine/pull/3546
GitHub
WIP: Add custom hook for updating page title dynamically. by sebabr...
Update page title dynamically Provide a custom hook useDocumentTitle to customize the page title Apply it for react-router-v6 Apply it for nextjs-router Test plan (required) No test till now ...
Bbroad-brown2/7/2023
@yildirayunlu , as you said that routerProvider props will be removed. So is it a valid approach to make changes in any router packages? I think every router package is completely independent. so it will not create any problems.
Cconscious-sapphire2/8/2023
Yes the useDocumentTitle hook will work correctly. Thank you for your effort, we are grateful ๐Ÿ™๐Ÿผ

Looking for more? Join the community!

R
Refine

ask-any-question

Join Server
Recommended Posts
Only send edited dataHello, I'm new to refine and was just testing it out by connecting it to my FeathersJS server. The iGetting Error when using buildin hooks in my custom hook.I tried to use the useResource hook inside my custom hook. but getting this error. I am using the foDefault access-control-casbin react sample boiler template gives error๐Ÿ˜ฉPossible to use day.js RelativeTime with Date FieldHi is it possible to use Time from now (https://day.js.org/docs/en/display/from-now) using day.js's 2 modals inside a same dropdownHi everyone, i create an menu dropdown, and inside this dropdown i wanna open the modal with create How to hide breadcrumb icons globally?I want to hide the breadcrumbs icons globally on all pages instead of hiding on each and individual How to change the text on `SaveButton`?I want to change the text of save button from **Save** to something else in `Edit` Component. How cahow to use form.setFields in checkboxform.setFieldsValue({ add: true }); <Form.Item name="add"> <Checkbox>Add</CheckboIs there a better way to do nested resources?I am trying to create routes for a couple of resources that only have a meaning if they are added tohttps refine dev docs comparison kindahttps://refine.dev/docs/comparison/ - kinda outdated - AdminBro is now AdminJS - resources from img.Use sorter in Table.Column with compare function, prevent queryI have a sort function that I am using because my dataIndex is an array `dataIndex={["pp_spec", "pp_Add option to disable CodeViewerComponent for MuiInferencerIs it possible to disabled the show code and give feedback section?Dynamically render formsIs there an easy way to dynamically render forms in refine?? through json fileGetting error when creating a new hook inside refine-coreI have created a new hook inside refine-core/hooks. now I tried to use it inside core-select-exampleAbout MultiPart uploadi am integrating a admin pannel using Ant Design only so can i get MultiPart Upload in Ant Design. C#Api TriggeringI have seen that same api calls are triggering two times why this was happening.This will effects thHow to solve refine (strapi v4) upload cors problem?I want to upload image file to my local filesystem. i use Strapi v4 data provider. I viewed this refhi guys sorry idk why i cant make ahi guys, sorry idk why i cant make a thread on my phone. i want to ask how to get history state whenI am using useDrawerForm inside of a list pageI wanted to see if there is a way to pass a query parameter to the list page and open the drawer witNeed help with routerproviderHey all, I was trying to create a new project with refine with the basic CRA scheme, and am facing a