Data Fetching Tools

With Vike you have full control over rendering, data fetching, data management, and HTML streaming. Integrating any data fetching tool you want is mostly a matter of following its official SSR guide. (Vike saves you from "fighting the framework".)

Reading Recommendation.

On a high-level, an integration usually works like this:
  1. You fetch the initial data on the server-side. (You do it on the server-side so that the initial data is rendered to HTML.)
  2. You make the initial data available as pageContext.initialData.
  3. You make pageContext.initialData available on the client-side by adding 'initialData' to passToClient.
  4. You initialize your data fetching tool on the client-side using pageContext.initialData.