ambassify / react-avatar

Universal avatar makes it possible to fetch/generate an avatar based on the information you have about that user.
MIT License
643 stars 117 forks source link

Warning: findDOMNode is deprecated in StrictMode #260

Open Kaffu093 opened 9 months ago

Kaffu093 commented 9 months ago

Hi, I don't know if is it just me but when I use this library, the console throws me this error:

react-dom.development.js:86  Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of AvatarText2 which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node
    at div
    at AvatarWrapper2 (http://192.168.0.93:5173/node_modules/.vite/deps/react-avatar.js?v=7927ac3d:4111:5)
    at AvatarText2 (http://192.168.0.93:5173/node_modules/.vite/deps/react-avatar.js?v=7927ac3d:4272:5)
    at AvatarDataProvider2 (http://192.168.0.93:5173/node_modules/.vite/deps/react-avatar.js?v=7927ac3d:3934:7)
    at withAvatarConfig
    at withAvatarConfig
    at OverlayTrigger (http://192.168.0.93:5173/node_modules/.vite/deps/react-bootstrap.js?v=7927ac3d:8194:3)
    at div
    at div
    at http://192.168.0.93:5173/node_modules/.vite/deps/react-bootstrap.js?v=7927ac3d:3636:10
    at div
    at http://192.168.0.93:5173/node_modules/.vite/deps/react-bootstrap.js?v=7927ac3d:8575:3
    at div
    at http://192.168.0.93:5173/node_modules/.vite/deps/react-bootstrap.js?v=7927ac3d:3652:3
    at MyProfile (http://192.168.0.93:5173/src/pages/Profile/MyProfile.jsx?t=1701121055525:41:29)
    at RenderedRoute (http://192.168.0.93:5173/node_modules/.vite/deps/react-router-dom.js?v=7927ac3d:3310:5)
    at Routes (http://192.168.0.93:5173/node_modules/.vite/deps/react-router-dom.js?v=7927ac3d:3763:5)
    at RoutesWithNotFound (http://192.168.0.93:5173/src/routes/RoutesWithNotFound.jsx:19:3)
    at div
    at div
    at div
    at div
    at LayoutGeneral (http://192.168.0.93:5173/src/components/layout/GeneralLayout/LayoutGeneral.jsx?t=1701099482814:25:3)
    at RoutesHome
    at RenderedRoute (http://192.168.0.93:5173/node_modules/.vite/deps/react-router-dom.js?v=7927ac3d:3310:5)
    at Outlet (http://192.168.0.93:5173/node_modules/.vite/deps/react-router-dom.js?v=7927ac3d:3703:26)
    at ProtectedRoute (http://192.168.0.93:5173/src/ProtectedRoute.jsx:23:16)
    at RenderedRoute (http://192.168.0.93:5173/node_modules/.vite/deps/react-router-dom.js?v=7927ac3d:3310:5)
    at Routes (http://192.168.0.93:5173/node_modules/.vite/deps/react-router-dom.js?v=7927ac3d:3763:5)
    at RoutesWithNotFound (http://192.168.0.93:5173/src/routes/RoutesWithNotFound.jsx:19:3)
    at App (http://192.168.0.93:5173/src/App.jsx?t=1701099482814:41:3)
    at Router (http://192.168.0.93:5173/node_modules/.vite/deps/react-router-dom.js?v=7927ac3d:3710:15)
    at BrowserRouter (http://192.168.0.93:5173/node_modules/.vite/deps/react-router-dom.js?v=7927ac3d:4190:5)
    at Toaster (http://192.168.0.93:5173/src/Toaster.jsx:21:3)
    at Provider (http://192.168.0.93:5173/node_modules/.vite/deps/chunk-B4ETL6RL.js?v=7927ac3d:1229:3)

Should I worry? I'm just posting this if this is an error of the library and not just me, thanks!