i'm new to flutter and i'm having some trouble with data managment using bloc. I`m building an app that make a request(get_things) using bloc and recieve as response a list of objects( example: {"things": [{"id": 1, "color" : "green"},{"id":2 , "color":"blue"},...] ).
With this response i build a widget presenting these "things" using blocState. Then i make another page that calls the same bloc to create a similar widget,but in this page we can create, modify or delete "things" and make the request to change them on the database (modify_things).
The problem is i'd like both pages to update the list after a change without making a request to backend to rebuild the lists with the modified list.
What i though as a solution was to save the blocState data of the initial request somewhere and then use this locally to make the changes to the widgets(lists). What i mean is, i delete one "thing" and send the request to modify the database, and at the same time i modify the saved blocState list locally to reflect this change. This way i only have to use get_things once and modify_things only when i make changes to the list.
Is this a good aproach? this method seems cumbersome, but as i'm fairly new to flutter so i couldn't think of anything else.
As for what i have the need to make less requests and manage this locally, it's because i've been told that in the future these "things" can get really big, and that making a request everytime i need to see the widget could eventually be a performance issue.