Fetch server-side data using the +data() hook
The
+data() hook allows for server-side data fetching (e.g., direct DB/ORM calls). The returned value is serialized and passed to the client as pageContext.data. In components, this data can be accessed using the useData() hook for type safety.