Ergonomic State Management: Part 2

Video #99 • Apr 20, 2020 • Members Only

We’ve made creating and enhancing reducers more ergonomic, but we still haven’t given much attention to the ergonomics of the view layer of the Composable Architecture. This week we’ll make the Store much nicer to use by taking advantage of a new Swift feature and by enhancing it with a SwiftUI helper.

Previous video
Ergonomic State Management: Part 2
Next video
Locked

Unlock This Video

Our Free plan includes 1 members only video of your choice, plus weekly updates from our newsletter.

Sign in with GitHub

Introduction

There’s another thing we can do to improve the ergonomics of our architecture, and that’s in the view layer. Right now, a view holds onto a view store that contains all of the state it cares about to render itself, and in order to access this state, we dive through the view store’s value property.

Dynamic member lookup


Get started with our free plan

Our free plan includes 1 members only episode of your choice, access to 75 free episodes with transcripts and code samples, and weekly updates from our newsletter.

View plans and pricing