Skip to content

Operation with && in event handlers via props causes the 'outside a createRoot' error #1715

@timothyallan

Description

@timothyallan

Describe the bug

It was suggested that the Discord support thread I raised should be logged as an issue, so here goes:

Why does button 1 generate a warning? Doesn't it just evaluate to boolean anyways?

Your Example Website or App

https://playground.solidjs.com/anonymous/d5fe0e41-701e-4360-b991-867f9e57811f

Steps to Reproduce the Bug or Issue

Click button 1, check out the console warning.

Expected behavior

No warning.

Screenshots or Videos

No response

Platform

MacOS, all browsers

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions