Skip to content
Discussion options

You must be logged in to vote

I would prefer creating a separate data provider for each service.

<Refine /> Usage Example

import { Refine } from "@refinedev/core";

import authApi          from "./providers/auth";       
import userApi          from "./providers/user";         
import inventoryApi     from "./providers/inventory";    
import ordersApi        from "./providers/orders";        
import notificationsApi from "./providers/notifications"; 
import analyticsApi     from "./providers/analytics";     

export default function App() {
  return (
    <Refine
      dataProvider={{
        default: authApi,
        users:   userApi,
        stock:   inventoryApi,
        orders:  ordersApi,
        notifications:   n…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by damla
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants