MuckRock / documentcloud-frontend

DocumentCloud's front end source code - Please report bugs, issues and feature requests to info@documentcloud.org
https://www.documentcloud.org
GNU Affero General Public License v3.0
15 stars 5 forks source link

More granular invalidation on document viewer route #576

Open allanlasser opened 2 weeks ago

allanlasser commented 2 weeks ago

When saving a form on the viewer, we invalidate the document route's data in SvelteKit, forcing a refetch. This mostly works great, except some data in the viewer (like the list of pinned add-ons) isn't impacted by this change.

https://github.com/MuckRock/documentcloud-frontend/blob/448caf5dfd0e92f5c38e5bd86ba8a0035fb8dd4e/src/routes/documents/%5Bid%5D-%5Bslug%5D/%2Bpage.svelte#L83-L91

We'll need to investigate and present solution(s) before continuing to specify work to be done.