Skip to content

Conditional Fields (get) => get('check') not working with multiple panels #540

@tabetVercetti

Description

@tabetVercetti

Hello,
in my r3f app, i create multiple leva panels; however, i noticed that conditionally rendering fields isn't working as it should.

i've set up a sandbox that recreates the issue. At the bottom you'll find two buttons, one for the box's panel and the other for the ground. Each panel has field that should appear conditionally when "moreSetting" is true.

Please have a look and let me know if this is truly a bug or am I doing something wrong?
Thank you

Dependencies:
“@react-three/drei”: “^10.0.4”,
“@react-three/fiber”: “^9.1.0”,
“@react-three/postprocessing”: “^3.0.4”,
“leva”: “^0.10.0”,
“next”: “^15.2.1”,
“postprocessing”: “^6.37.1”,
“react”: “^19.0.0”,
“react-dom”: “^19.0.0”,
“three”: “^0.174.0”
"zustand": "5.0.3"

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