Replies: 1 comment 1 reply
-
@andwrobs We think different folks will come up with different conventions, but in the repos most of our features follow this convention: struct Story: ReducerProtocol {
struct State { /* ... */ } // <- Data model
enum Action { /* ... */ }
// ...
}
struct StoryView: View {
let store: StoreOf<Story>
// ...
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi TCA community,
What is the naming convention for data model-view-reducer triplets?
For example,
Story <-- Data Model
StoryView <-- View
Story___ <-- ReducerProtocol conforming struct
Should the ___ be:
And then, would the rule be summarized as:
Prefer nothing but use {INSERT ____} in case of naming conflict?
@ contributors, ReducerProtocol is the bees knees, I'm having so much fun using it.
Beta Was this translation helpful? Give feedback.
All reactions