Skip to content

Warnings about props 'cytoInstance' and 'layout' #2

@H4ngryH4ngryH1ppos

Description

@H4ngryH4ngryH1ppos

Was using this package for a project and ran into these two Warnings:

Warning: React does not recognize the `cytoInstance` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `cytoinstance` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
- Node@[project]/node_modules/.vite/deps/cytoscape-react.js?v=8bf05152:9042:11
- Graph@[project]/node_modules/.vite/deps/cytoscape-react.js?v=8bf05152:8913:11

Warning: Invalid value for prop `layout` on <div> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior
- Node@[project]/node_modules/.vite/deps/cytoscape-react.js?v=8bf05152:9042:11
- Graph@[project]/node_modules/.vite/deps/cytoscape-react.js?v=8bf05152:8913:11

Wondering if you know what the root cause of these warnings may be.

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