abstract-purpleA
Refine3y ago
13 replies
abstract-purple

IDataContextProvider Migration

I was using an IDataContextProvider with refine v3 to set some contextual data for subsequent CRUD views. Now in my migration it is saying the setter does not exist

When I import ProjectContext now and add const [, setCurrentProject] = useContext(ProjectContext); and try to invoke setCurrentProject by clicking a button, I get this error:

react-dom.development.js:4312 Uncaught TypeError: setCurrentProject is not a function
Was this page helpful?