From 2aa7bd3e15fea0b48698acb0c06f041ca87233f0 Mon Sep 17 00:00:00 2001 From: littensy <56808540+littensy@users.noreply.github.com> Date: Mon, 3 Nov 2025 02:22:51 -0800 Subject: [PATCH] docs: rephrase computed arg change --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2d1ed7f..ece7086 100644 --- a/README.md +++ b/README.md @@ -813,7 +813,8 @@ Charm v0.11 introduces _a lot_ of breaking changes, so below are some tips that 1. Address all of the type errors introduced in your project after updating Charm. Most of them are caused by changes like: - `batch()` was renamed to `batched()` - - The second arguments of `atom()` and `computed()` changed from an `options` table to an equality function + - The second arguments of `atom()` changed from an `options` table to an equality function + - Removed the second argument of `computed()` (you can do your own equality checks now) - Removed the cleanup argument in effect callbacks (`effect(function(cleanup) end)`) 2. If you use Charm Sync, you'll have to rewrite a lot of your sync code. Fortunately, most of the changes should make your code _less_ complicated: