Skip to content

🎥 Make videos programmatically with React

docs: multi-process rendering with localStorage caching requires the data API response to stay the same

Marcus Stenbeck06b517480ee2
diff --git a/packages/docs/docs/data-fetching.md b/packages/docs/docs/data-fetching.md
index 047f6b4ad2..85df86ab9a 100644
--- a/packages/docs/docs/data-fetching.md
+++ b/packages/docs/docs/data-fetching.md
@@ -45,7 +45,7 @@ It is important to know that in the render process, data fetching works on a per
Every frame, every component is re-rendered by the _frame context_ modification and then screenshotted.
You should consider caching the result of your API, to avoid rate-limits and also to speed up the render of your video. We have two suggestions on how to do that:
-- Use the `localStorage` API to persist data after a network request and make a request only if the local storage is empty.
+- Use the `localStorage` API to persist data after a network request and make a request only if the local storage is empty. This technique will make one request per rendering process and then continue with the cached data. If the API you're fetching data from returns different data for each request this method is not a good choice.
- Fetch the data before the render, and store it as a JSON file, then import this JSON file.