From cea7e1bbc1ec9d91278993844172c7ad4df996c7 Mon Sep 17 00:00:00 2001 From: klequis Date: Tue, 11 Mar 2025 10:51:14 -0700 Subject: [PATCH] Update produce.mdx: Clarify meaning of "local mutation" I didn't relate to the term "local mutation" and that could just be a function of my experience (or lack thereof) but I asked about it on Discord and got a great answer from @fabiospampinato: Local mutation, at lease in this context, means "[you can] mutate the store inside the produce function". I'm suggesting changed the doc to remove the term "local mutation" and replace it with @fabiospampinto's definition. However, if you think "local mutation" is relatable to most readers of the docs just let me know and I'll close the issue. Discord link: https://discord.com/channels/722131463138705510/861229287868858379/1348946097430728725 --- src/routes/reference/store-utilities/produce.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/reference/store-utilities/produce.mdx b/src/routes/reference/store-utilities/produce.mdx index 1f0153fc5..612769d9a 100644 --- a/src/routes/reference/store-utilities/produce.mdx +++ b/src/routes/reference/store-utilities/produce.mdx @@ -2,7 +2,7 @@ title: produce --- -`produce` is an [Immer](https://immerjs.github.io/immer/) inspired API for Solid's Store objects that allows for localized mutation. +`produce` is an [Immer](https://immerjs.github.io/immer/) inspired API for Solid's Store objects that allows the store to be mutated inside the `produce` function. ```ts import { produce } from "solid-js/store"