9
9
</h1 >
10
10
<p align =" center " >
11
11
<a href="http://blog.codinghorror.com/the-best-code-is-no-code-at-all/">
12
- <img alt="Lines of Code" src="https://img.shields.io/badge/loc-1736 -47d299.svg" />
12
+ <img alt="Lines of Code" src="https://img.shields.io/badge/loc-1783 -47d299.svg" />
13
13
</a>
14
14
<a href="https://codeclimate.com/github/hopsoft/turbo_boost-commands/maintainability">
15
15
<img src="https://api.codeclimate.com/v1/badges/fe1162a742fe83a4fdfd/maintainability" />
62
62
63
63
- [ Why TurboBoost Commands?] ( #why-turboboost-commands )
64
64
- [ Sponsors] ( #sponsors )
65
+ - [ Open Source projects like TurboBoost rely on your support] ( #open-source-projects-like-turboboost-rely-on-your-support )
65
66
- [ Dependencies] ( #dependencies )
66
67
- [ Setup] ( #setup )
67
68
- [ Configuration] ( #configuration )
75
76
- [ Setting Instance Variables] ( #setting-instance-variables )
76
77
- [ Prevent Controller Action] ( #prevent-controller-action )
77
78
- [ Broadcasting Turbo Streams] ( #broadcasting-turbo-streams )
78
- - [ Tracking Page State] ( #tracking-page-state )
79
+ - [ State] ( #state )
80
+ - [ Ephemeral Page State] ( #ephemeral-page-state )
79
81
- [ Community] ( #community )
80
82
- [ Developing] ( #developing )
81
83
- [ Notable Files] ( #notable-files )
@@ -113,8 +115,6 @@ Namely,
113
115
3 . ** (Re)render to reflect the new state**
114
116
4 . _ repeat..._
115
117
116
- _ The primary distinction being that ** state is wholly managed by the server** ._
117
-
118
118
Commands are executed via a Rails ` before_action ` which means that reactivity runs over HTTP.
119
119
_ ** Web sockets are NOT used for the reactive critical path!** 🎉_
120
120
This also means that standard Rails mechanics drive their behavior.
@@ -134,10 +134,10 @@ Your contribution will help drive the evolution of **TurboBoost**, enabling new
134
134
135
135
<p >
136
136
<a href =" https://donate.stripe.com/fZe9EjfhZbZRdeE9AA?utm_source=github&utm_medium=readme&utm_campaign=hopsoft&utm_content=turbo_boost-commands " >
137
- <img src="https://img.shields.io/badge/Donate_with_Stripe-635bff?style=flat&labelColor=c4b8ff&logo=Stripe&logoColor=635bff&logoSize=auto" alt="Make a one-time Stripe donation" height="32 " />
137
+ <img src="https://img.shields.io/badge/Donate_with_Stripe-635bff?style=flat&labelColor=c4b8ff&logo=Stripe&logoColor=635bff&logoSize=auto" alt="Make a one-time Stripe donation" height="28 " />
138
138
</a >
139
139
<a href =" https://commerce.coinbase.com/checkout/0a6079bf-5c7a-4a93-a943-401bba8981a0?utm_source=github&utm_medium=readme&utm_campaign=hopsoft&utm_content=turbo_boost-commands " >
140
- <img src="https://img.shields.io/badge/Donate_with_Coinbase-0052ff.svg?style=flat&logoSize=30&labelColor=a3c4ff&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PHJlY3Qgd2lkdGg9IjEwMjQiIGhlaWdodD0iMTAyNCIgZmlsbD0iIzAwNTJmZiIgcng9IjUxMiIvPjxwYXRoIGZpbGw9IiNGRkYiIGQ9Ik01MTIuMTQ3IDY5MmMtOTkuNDUgMC0xODAtODAuNTUtMTgwLTE4MHM4MC41NS0xODAgMTgwLTE4MGM4OS4xIDAgMTYzLjA1IDY0Ljk1IDE3Ny4zIDE1MGgxODEuMzVjLTE1LjMtMTg0LjgtMTcwLTMzMC0zNTguNjUtMzMwLTE5OC43NSAwLTM2MCAxNjEuMjUtMzYwIDM2MHMxNjEuMjUgMzYwIDM2MCAzNjBjMTg4LjY1IDAgMzQzLjM1LTE0NS4yIDM1OC42NS0zMzBoLTE4MS41Yy0xNC4yNSA4NS4wNS04OC4yNSAxNTAtMTc3LjE1IDE1MHoiLz48L3N2Zz4=" alt="Make a one-time Coinbase donation" height="32 " />
140
+ <img src="https://img.shields.io/badge/Donate_with_Coinbase-0052ff.svg?style=flat&logoSize=30&labelColor=a3c4ff&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PHJlY3Qgd2lkdGg9IjEwMjQiIGhlaWdodD0iMTAyNCIgZmlsbD0iIzAwNTJmZiIgcng9IjUxMiIvPjxwYXRoIGZpbGw9IiNGRkYiIGQ9Ik01MTIuMTQ3IDY5MmMtOTkuNDUgMC0xODAtODAuNTUtMTgwLTE4MHM4MC41NS0xODAgMTgwLTE4MGM4OS4xIDAgMTYzLjA1IDY0Ljk1IDE3Ny4zIDE1MGgxODEuMzVjLTE1LjMtMTg0LjgtMTcwLTMzMC0zNTguNjUtMzMwLTE5OC43NSAwLTM2MCAxNjEuMjUtMzYwIDM2MHMxNjEuMjUgMzYwIDM2MCAzNjBjMTg4LjY1IDAgMzQzLjM1LTE0NS4yIDM1OC42NS0zMzBoLTE4MS41Yy0xNC4yNSA4NS4wNS04OC4yNSAxNTAtMTc3LjE1IDE1MHoiLz48L3N2Zz4=" alt="Make a one-time Coinbase donation" height="28 " />
141
141
</a >
142
142
</p >
143
143
@@ -527,7 +527,11 @@ _Learn more about Turbo Stream broadcasting by reading through the
527
527
> [ !NOTE]
528
528
> ` broadcast_invoke_later_to ` is a [ TurboBoost Streams] ( https://github.com/hopsoft/turbo_boost-streams#broadcasting ) feature.
529
529
530
- ### Tracking Page State
530
+ ## State
531
+
532
+ TODO: Document state tracking
533
+
534
+ ### Ephemeral Page State
531
535
532
536
You can opt-in to remember transient page state when using Rails tag helpers with ` turbo_boost[:remember] ` to track
533
537
element attribute values between requests.
0 commit comments