From 98fc53fed6478f41fce91e55458df9b8956dd7b1 Mon Sep 17 00:00:00 2001 From: Tomasz Wysocki <0xdaydream@proton.me> Date: Sat, 17 Feb 2024 22:24:05 +0100 Subject: [PATCH] Remove redundant suggestion Removed the redundant alternative state management suggestion. The documentation already emphasizes the elimination of duplication by advising to hold the selected ID in state, making the alternative suggestion unnecessary. --- src/content/learn/choosing-the-state-structure.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/content/learn/choosing-the-state-structure.md b/src/content/learn/choosing-the-state-structure.md index c3218589a34..5be2b4d346a 100644 --- a/src/content/learn/choosing-the-state-structure.md +++ b/src/content/learn/choosing-the-state-structure.md @@ -554,8 +554,6 @@ button { margin-top: 10px; } -(Alternatively, you may hold the selected index in state.) - The state used to be duplicated like this: * `items = [{ id: 0, title: 'pretzels'}, ...]`