wispy-yellowW
Refine3y ago
4 replies
wispy-yellow

Question regarding live provider

I am using the ablyClient as the data provider and I added this config in my Refine component like this:
<Refine
dataProvider={{
default: dataProvider("http://127.0.0.1:8000/v1"),
}}
notificationProvider={notificationProvider}
routerProvider={routerBindings}
authProvider={authProvider}
liveProvider={liveProvider(ablyClient)}
resources={[
{
name: "jobs",
list: "/jobs",
show: "/jobs/show/:id",
create: "/jobs/create",
edit: "/jobs/edit/:id",
meta: {
label: "Jobs",
canDelete: true,
},
},
]}
options={{
liveMode: "auto",
syncWithLocation: true,
warnWhenUnsavedChanges: true,
projectId: "kKDbmc-9fHpIR-0YZxtm",
}}

According to the documentation, all the hooks in my app should be realtime updated, right? But why the frontend didn't change when there is a change in the backend? Note that I only requested data from the frontend to the backend through the hook. Should I send the data from the backend or request the data from the frontend if I am using hook to transfer the data
Was this page helpful?