🎉 End-of-year Sale! Save 25% when you subscribe today.

Modular State Management: View Actions

Episode #74 • Sep 30, 2019 • Subscriber-Only

It’s time to fully modularize our app! Our views can still send any app action, so let’s explore transforming stores to focus in on just the local actions a view cares about.

Collection
Modularity
Modular State Management: View Actions
Locked

Unlock This Episode

Our Free plan includes 1 subscriber-only episode of your choice, plus weekly updates from our newsletter.

Sign in with GitHub

Introduction

And just like that our views now take a smaller subset of state than the full AppState, which means the stores that power the views are starting to look a lot more like the reducers that power them.

It’s also worth noting how simple these changes were, and how quick we made them. We merely changed the state that the views operated on to focus in on just what they needed, and then we made sure that the stores we passed to those views were transformed in order to pluck out these values.

Transforming a store’s action


References

Downloads

Get started with our free plan

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

View plans and pricing