react_axios_requests icon indicating copy to clipboard operation
react_axios_requests copied to clipboard

Why all the posts need to be injected in EditPost component?

Open sumitjain7 opened this issue 1 year ago • 0 comments

Hi Dave I was wondering, for editing a single post why do we need to pass the array of posts in EditPost component and then internally filter it by id? Rather we can simply pass the Post object as prop directly.

The same logic is true while we are showing the Post component.

sumitjain7 avatar Mar 14 '24 03:03 sumitjain7