Skip to content

Share code between adapter mixins #145

Answered by frank06
oarshad asked this question in Q&A
Discussion options

You must be logged in to vote

Good question. You simply need to stack adapters like:

@DataRepository([ApplicationAdapter, CategoryAdapter])
class Category with DataModel<Category> {

Adapters override behavior from left to right as this essentially translates to RemoteAdapter<Category> with ApplicationAdapter<Category>, CategoryAdapter. Try it out!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by oarshad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants