Skip to content

How to structure stores for both paginated and unpaginated data #2130

Discussion options

You must be logged in to vote

Hey @Dummy26 - thanks for your question! I don't think there's one "right" way to do this,

Since you only care about a subset of fields for reordering, you might be able to load that data without pagination, assuming you can query your database and return just the id and name fields. I would personally load that up into a separate store or model for your re-ordering feature, and then treat it as de-normalized data. Once you load that all up into the reordering feature, you can reorder the fields, write the new order of them into whatever persistent database you have, and make sure the ContactFieldGroupStoreModel has a way to invalidate its old pagination data, and re-fetch if appropriate.

I…

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by aniket-banyal
Comment options

You must be logged in to vote
3 replies
@coolsoftwaretyler
Comment options

@aniket-banyal
Comment options

@coolsoftwaretyler
Comment options

Comment options

You must be logged in to vote
1 reply
@coolsoftwaretyler
Comment options

Comment options

You must be logged in to vote
1 reply
@aniket-banyal
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants