bancorprotocol / carbon-app

https://app.carbondefi.xyz
MIT License
26 stars 20 forks source link

[Warning] Function components cannot be given refs - Notifications #1363

Open tiagofilipenunes opened 3 months ago

tiagofilipenunes commented 3 months ago

Got this warning when running the app locally:

Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
Check the render method of `PopChild`.
NotificationItem@http://localhost:3000/src/libs/notifications/NotificationsProvider.tsx:62:28
PopChildMeasure@http://localhost:3000/node_modules/.vite/deps/framer-motion.js?v=e956dd51:6468:23
PopChild@http://localhost:3000/node_modules/.vite/deps/framer-motion.js?v=e956dd51:6489:18
PresenceChild@http://localhost:3000/node_modules/.vite/deps/framer-motion.js?v=e956dd51:6524:21
AnimatePresence@http://localhost:3000/node_modules/.vite/deps/framer-motion.js?v=e956dd51:6584:23
ul
NotificationAlerts@http://localhost:3000/src/libs/notifications/NotificationsProvider.tsx:27:20
App@http://localhost:3000/src/App.tsx:33:34
MatchInner@http://localhost:3000/node_modules/.vite/deps/@tanstack_react-router.js?v=e956dd51:670:20
CatchBoundaryImpl@http://localhost:3000/node_modules/.vite/deps/@tanstack_react-router.js?v=e956dd51:407:5
CatchBoundary@http://localhost:3000/node_modules/.vite/deps/@tanstack_react-router.js?v=e956dd51:389:26
SafeFragment@http://localhost:3000/node_modules/.vite/deps/@tanstack_react-router.js?v=e956dd51:632:52
Match@http://localhost:3000/node_modules/.vite/deps/@tanstack_react-router.js?v=e956dd51:634:15
CatchBoundaryImpl@http://localhost:3000/node_modules/.vite/deps/@tanstack_react-router.js?v=e956dd51:407:5
CatchBoundary@http://localhost:3000/node_modules/.vite/deps/@tanstack_react-router.js?v=e956dd51:389:26
Matches@http://localhost:3000/node_modules/.vite/deps/@tanstack_react-router.js?v=e956dd51:609:18
RouterProvider@http://localhost:3000/node_modules/.vite/deps/@tanstack_react-router.js?v=e956dd51:821:24
LazyMotion@http://localhost:3000/node_modules/.vite/deps/framer-motion.js?v=e956dd51:6738:20
LazyMotion@http://localhost:3000/src/libs/motion/index.tsx:24:27
CarbonWagmiProvider@http://localhost:3000/src/libs/wagmi/WagmiProvider.tsx:57:36
Hydrate@http://localhost:3000/node_modules/.vite/deps/wagmi.js?v=e956dd51:112:71
WagmiProvider@http://localhost:3000/node_modules/.vite/deps/wagmi.js?v=e956dd51:136:32
WagmiReactWrapper@http://localhost:3000/src/libs/wagmi/WagmiReactWrapper.tsx:20:34
StoreProvider@http://localhost:3000/src/store/StoreProvider.tsx:83:30
QueryClientProvider@http://localhost:3000/node_modules/.vite/deps/chunk-WZQNURLG.js?v=e956dd51:2674:27
QueryProvider@http://localhost:3000/src/libs/queries/QueryProvider.tsx:32:30