Module under Module
Okay so i am using refine+anyd+supabase, i am making project module and under my project module i have task module. So I have a table project and when i show one project, i can navigate to task module but the problem is when i am showing my task table and when i click on create it shows me the form to create project. Please help me out
2 Replies
Hi @venom. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
It seems like there might be a mix-up in your routing or component setup. In Refine, each module (or resource) should have its own set of pages for creating, editing, and viewing items.
For example, in the task module, you should have a
TaskCreate
component that is used to create tasks. This component should be imported and used in the task module's routing setup. Here's an example of what the TaskCreate
component might look like:
(Source: Create Your Easy Customizable Internal Issue Tracker With Refine and Supabase > Create Task (https://refine.dev/blog/customizable-issue-tracker-with-refine-and-supabase#create-task))
Make sure that you're using the correct component for creating tasks in your task module's routing setup. If you're still having trouble, please provide more details about your setup so I can give a more specific answer.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@1090629145681215550> kapa.ai is still learning and improving, please let us know how it did by reacting below