Skip to content

Observable not updating when a method is called from a nested component #6393

@PoojaC94

Description

@PoojaC94

Discussed in #6392

Originally posted by PoojaC94 September 22, 2022
I have a FAST component which has multiple components in it
Component A
const template = html<item> ${when x=> x.isComponentOpen, <componentB></componentB> }
<componentC :onClick={(x)=>x.onClick}></componentC>

@observable isComponentOpen = false;
onClick() { this.isComponentOpen=true }

When componentC calls onClick, the isComponentOpen is set to true but componentB is not appearing. Why does this happen?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions