|
|
|
|
|
by laszlokorte
231 days ago
|
|
With lenses its possible to create component interfaces that make local and global state interchangeable. Even for focus, selection, scrollposition components use local state by default but that can replaced by a lense into a global state.
This make stuff like synching two scroll positions or selectiom ranges super easy and allows for consistent manual focus management across components. |
|
I guess you gain persistence of your entire app’s state (which makes time travel debugging easier) but that’s all I can think of.