primary-violetP
Refine3y ago
7 replies
primary-violet

multiple data providers

<Refine
dataProvider={{
default: dataProvider(API_BASE_URL),
other: dataProvider(API_GHN),
}}
notificationProvider={useNotificationProvider}
i18nProvider={i18nProvider}
routerProvider={routerBindings}
resources={[

i have another dataProvider as other and tried to get it from other components by logging it, but it's always undefined
const API_URL = useApiUrl("other");
console.log(API_URL);
Was this page helpful?