Want to handle one-to-many relationships in Flux stores? Let’s say you want to optimistically put a new card in a particular column, and that a card can only be in one column:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | _cards: { 'CARD_1': { id: 'CARD_1', columnID: 'COLUMN_3', title: 'Go to sleep', text: 'Be healthy and go to sleep on time.', }, 'CARD_2': { id: 'CARD_2', columnID: 'COLUMN_3', title: 'Eat green vegetables', text: 'They taste better with onions.', }, } |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.