need help with managing state with redux.

about 2 years ago - Direct link

I created an API for a simple note app I'm working on and for the note detail page, I tend to use draft.js for editing the existing note. the response from the API call 'notes/:id' looks like:

{ id: 1, title:'fsdfsd', note_body: large text }

I think it's not good to have a large text stored in my state Is there a better way of doing this? and must i store the response for each note in the store when i reached the detail page?('notes/:id')


Go to article →