material-dashboard-react icon indicating copy to clipboard operation
material-dashboard-react copied to clipboard

React Hook "useContext" is called conditionally.

Open matteocelani opened this issue 3 years ago • 3 comments

Failed to compile.

src/components/MDPagination/index.js Line 17:28: React Hook "useContext" is called conditionally. React Hooks must be called in the exact same order in every component render react-hooks/rules-of-hooks

matteocelani avatar Feb 08 '22 11:02 matteocelani

I have the same issue.

hborole avatar Feb 09 '22 17:02 hborole

Remove conditionally

const context = useContext(Context);

matteocelani avatar Feb 09 '22 21:02 matteocelani

Hi there

Thanks for using our product and reporting this issue, we will take care of that on the next update of the product.

All the best Sajad

sajadevo avatar Feb 10 '22 09:02 sajadevo