I need to pass an id from a zustand store to a server component in order to fetch data. Currently it is like that:
- Client component uses a hook to access the state and retrieves ID
- ID is passed to a server component (no
use client) where my DB is getting fetched
but the query will be executed on my browser.. What am I doing wrong?