Skip to content

fix(app): properly wrap produce calls in setProjects#23638

Merged
Brendonovich merged 3 commits intodevfrom
brendan/fix-produce-store-pattern
Apr 21, 2026
Merged

fix(app): properly wrap produce calls in setProjects#23638
Brendonovich merged 3 commits intodevfrom
brendan/fix-produce-store-pattern

Conversation

@Brendonovich
Copy link
Copy Markdown
Member

@Brendonovich Brendonovich commented Apr 21, 2026

Fixes the ''get' on proxy: property 'Symbol(solid-proxy)' is a read-only ' error by not double-wrapping a setter function in produce

The setProjects function was expecting a function that modifies a draft in-place,
but the callers were passing functions that return void. This fix ensures that
produce() is called at the call sites and the result is passed to setProjects.
@Brendonovich Brendonovich merged commit 22d33c5 into dev Apr 21, 2026
8 checks passed
@Brendonovich Brendonovich deleted the brendan/fix-produce-store-pattern branch April 21, 2026 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant