skinny-azureS
Refine3y ago
5 replies
skinny-azure

Multiple liveProvider

Hello,

I can't find the information is it possible to have multiple liveProvider, for instance, we can have many dataProvider, but is it possible with liveProvider ? I want something similar to my dataProvider list:

export enum PROVIDERS {
    EXERCISES="service_exercises",
    RESULTS="service_results",
    LEARNING_LAB="learning_lab"
}

export const refineConfig: RefineProps = {
    dataProvider: {
        default: dataProvider("http://localhost:3000"),
        [PROVIDERS.EXERCISES]: dataProvider("http://localhost:3000"),
        [PROVIDERS.RESULTS]: dataProvider("http://localhost:3001"),
        [PROVIDERS.LEARNING_LAB]: dataProvider("***")
    },
    notificationProvider: notificationProvider,
    routerProvider: routerBindings,
    liveProvider: liveProvider("***"),
    resources: routesConfig,
    options: {
        syncWithLocation: true,
        warnWhenUnsavedChanges: true,
    }
}

export default refineConfig;

Thanks in advance !
Was this page helpful?