- 
                Notifications
    You must be signed in to change notification settings 
- Fork 173
Open
Description
Describe the bug
"foo" in useParams() // always evaluates to false
"foo" in { ...useParams() } // can evaluate to true or falseI assume this has something to do with useParams() returning a Proxy
Your Example Website or App
https://github.com/samualtnorman/solid-bug/tree/useparams
Steps to Reproduce the Bug or Issue
- Clone repo
- Switch to useparamsbranch
- pnpm install
- pnpm dev
- Visit http://localhost:3000/ids/0
Expected behavior
I expect it to evaluate to true when that param is present
Screenshots or Videos
No response
Platform
- OS: NixOS 24.11 (Vicuna) x86_64
- Browser: Zen Browser 1.8.2b (Firefox 135.0.1) (64-bit)
Additional context
I initially thought this might have been an issue with Proxys in general in Solid.js but I was only able to replicate the issue with useParams()
Metadata
Metadata
Assignees
Labels
No labels