Hello , I need some advice here , i am
Hello , I need some advice here , i am creating a custom data provider.
getting error in App.tsx file data provider prop.
Type '{ getList: (resource: string) => Promise<{ data: any; total: number; }>; }' is missing the following properties from type 'IDataContextProvider': getOne, create, update, deleteOne, getApiUrl
1 Reply
useful-bronze•12mo ago
Hello @chetanh2 as the error already mentions, you need to add these methods to your data provider.
getOne
, create
, update
etc.. Please read our documentation.
https://refine.dev/docs/tutorial/understanding-dataprovider/index/#what-is-data-provider1. Data Provider | refine
The Data Provider unit is optional for the tutorial. You can directly skip to the next unit, Adding CRUD PagesAdding CRUD PagesAdding CRUD PagesAdding CRUD PagesAdding CRUD Pages, if desired