Closed bleucitron closed 2 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/ourson/open-books/7ewJ4KuMNw3asLoGMRwC2JPJsyBs
✅ Preview: https://open-books-git-refacto-budget-ourson.vercel.app
sirens
-based urlsfillBudgetBySirens
(use.map
instead of.forEach
) andfillBudgetBySiret
context="module"
, redirect to url with siret and sirens if(!siret || !sirens)
(see Svelte-Kit doc)budgetCache
(never reset) andbudgetById
(reset when$city
changes)Caching tips
fillBudgetBySirens
Retrieving cache from
budgetCache
forfillBudgetBySirens
can be tricky. For each siren:getRecords