react-cookie-law
react-cookie-law copied to clipboard
setState during render.
The cookie banner component calls the passed callback function immediately during the rendering, without waiting for it to mount.
Are you passing it as ={callback} or ={callback()} ?
@pinguks I believe I have the same issue. Does it happen only after you clicked accept all? That is, when the cookies already exist for all the options?
@guvarallo did you find a fix for that? I get a Warning: Cannot update a component while rendering a different component after accepting (it is supposed to close a modal accept={()=>setIsOpen(false)}