Next.js Discord

Discord Forum

child client component not updating?

Unanswered
American black bear posted this in #help-forum
Open in Discord
American black bearOP
i have this component in a child:
export function JournalList({startJournals, startPage = 1}) {
  const {data: session} = useSession();
  const [journals, setJournals] = useState(startJournals);
  // ...
and startJournals is defined by a variable in the parent server component
however, when the variable in the parent server componnent changes, the child doesn't seem to rerender.
how can i fix this?

3 Replies