SolidJSS
SolidJS3y ago
13 replies
Mr Void

child-components not updating when parent state is modified.

Paragraph component:
https://pastebin.com/raw/Y9tM6qgN

Word component:
https://pastebin.com/raw/zR6JCYbD

Description

The Paragraph component keeps track of Word components' data within a signal.
It contains
toggleWordMark
function which is passed to each Word component as a callback function.

Each Word, when clicked, calls
toggleWordMark
and its data is updated within the Paragraph's
words
signal.

Problem

The word components are not re-rendered when the Paragraph state is modified.
Was this page helpful?