Skip to content

Warning: Cannot update a component #44

Open
@niroop893

Description

@niroop893

Error: Warning: Cannot update a component (`App`) while rendering a different component (`Navbar`). To locate the bad setState() call inside `Navbar`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render
at Navbar (https://36a6671d-a2ee-4c3b-82ba-f68dd497060c-00-12c7roji1de4b.pike.replit.dev:3000/static/js/bundle.js:567:58)
at Router (https://36a6671d-a2ee-4c3b-82ba-f68dd497060c-00-12c7roji1de4b.pike.replit.dev:3000/static/js/bundle.js:41593:15)
at BrowserRouter (https://36a6671d-a2ee-4c3b-82ba-f68dd497060c-00-12c7roji1de4b.pike.replit.dev:3000/static/js/bundle.js:39546:5)
at App (https://36a6671d-a2ee-4c3b-82ba-f68dd497060c-00-12c7roji1de4b.pike.replit.dev:3000/static/js/bundle.js:42:74)https://36a6671d-a2ee-4c3b-82ba-f68dd497060c-00-12c7roji1de4b.pike.replit.dev:3000/static/js/bundle.js:567
at Navbar (https://36a6671d-a2ee-4c3b-82ba-f68dd497060c-00-12c7roji1de4b.pike.replit.dev:3000/static/js/bundle.js:567:58)
at Router (https://36a6671d-a2ee-4c3b-82ba-f68dd497060c-00-12c7roji1de4b.pike.replit.dev:3000/static/js/bundle.js:41593:15)
at BrowserRouter (https://36a6671d-a2ee-4c3b-82ba-f68dd497060c-00-12c7roji1de4b.pike.replit.dev:3000/static/js/bundle.js:39546:5)
at App (https://36a6671d-a2ee-4c3b-82ba-f68dd497060c-00-12c7roji1de4b.pike.replit.dev:3000/static/js/bundle.js:42:74)


at t.formatMsg (https://36a6671d-a2ee-4c3b-82ba-f68dd497060c-00-12c7roji1de4b.pike.replit.dev:3000/__replco/static/devtools/devtools.js:74:4990)
at new e (https://36a6671d-a2ee-4c3b-82ba-f68dd497060c-00-12c7roji1de4b.pike.replit.dev:3000/__replco/static/devtools/devtools.js:74:1632)
at t.insertSync (https://36a6671d-a2ee-4c3b-82ba-f68dd497060c-00-12c7roji1de4b.pike.replit.dev:3000/__replco/static/devtools/devtools.js:97:17133)
at https://36a6671d-a2ee-4c3b-82ba-f68dd497060c-00-12c7roji1de4b.pike.replit.dev:3000/__replco/static/devtools/devtools.js:97:18736
Error: Warning: Navbar: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
at Navbar (https://36a6671d-a2ee-4c3b-82ba-f68dd497060c-00-12c7roji1de4b.pike.replit.dev:3000/static/js/bundle.js:567:58)
at Router (https://36a6671d-a2ee-4c3b-82ba-f68dd497060c-00-12c7roji1de4b.pike.replit.dev:3000/static/js/bundle.js:41593:15)
at BrowserRouter (https://36a6671d-a2ee-4c3b-82ba-f68dd497060c-00-12c7roji1de4b.pike.replit.dev:3000/static/js/bundle.js:39546:5)
at App (https://36a6671d-a2ee-4c3b-82ba-f68dd497060c-00-12c7roji1de4b.pike.replit.dev:3000/static/js/bundle.js:42:74)https://36a6671d-a2ee-4c3b-82ba-f68dd497060c-00-12c7roji1de4b.pike.replit.dev:3000/static/js/bundle.js:567

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions