Skip to content

Breaking change between version 5.0.1 and 5.1.0 #6934

@kennethlarkin

Description

@kennethlarkin

Version

5.1.0

Test Case

upgrading a site between 5.0.1 and 5.1.0 breaks the site.

Steps to reproduce

add a <link> inside a <browserRouter>

let BrowserRouter = ReactRouterDOM.BrowserRouter;
let Link = ReactRouterDOM.Link;

adding a to= doesnt make a difference

return (
<BrowserRouter>
<Link className="nav-link" >Home</Link>

Expected Behavior

link rendered

Actual Behavior

backend.js:6 Warning: Stateless function components cannot be given refs. Attempts to access this ref will fail.

Check the render method of e.
in Unknown (created by e)
in e
in Unknown (created by AppLayout)
in t (created by t)
in t (created by t)
in t (created by AppLayout)
in AppLayout

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions