From 747bead1f36bda08edd0616b13aa847c9736de91 Mon Sep 17 00:00:00 2001 From: "Nate Hopkins (hopsoft)" Date: Thu, 13 Jun 2024 16:40:22 -0600 Subject: [PATCH] Add todo for documenting state tracking --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fdd54ecc..dbd0b95a 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,8 @@ - [Setting Instance Variables](#setting-instance-variables) - [Prevent Controller Action](#prevent-controller-action) - [Broadcasting Turbo Streams](#broadcasting-turbo-streams) - - [Tracking Page State](#tracking-page-state) + - [State](#state) + - [Ephemeral Page State](#ephemeral-page-state) - [Community](#community) - [Developing](#developing) - [Notable Files](#notable-files) @@ -526,7 +527,11 @@ _Learn more about Turbo Stream broadcasting by reading through the > [!NOTE] > `broadcast_invoke_later_to` is a [TurboBoost Streams](https://github.com/hopsoft/turbo_boost-streams#broadcasting) feature. -### Tracking Page State +## State + +TODO: Document state tracking + +### Ephemeral Page State You can opt-in to remember transient page state when using Rails tag helpers with `turbo_boost[:remember]` to track element attribute values between requests.