Skip to content

useDoc with derived output from another charm doesn't provide data #1011

@jkomoros

Description

@jkomoros

The set-up is I have a charm (Classifier) that when created @ referenced another charm (Input). The input charm publishes a list of all examples (an argument named textInputs), and also the currently selected output (an argument named currentOutput, which is a string representing the value of the selected item).

When I make a new iteration of the Classifier charm, the UI erroneously doesn't receive the currentOutput from the input charm, even if I refresh. However, if I go back to the Input charm and actively toggle which item is selected, then the new Classifier charm picks up the new currentOutput.

Charm that shows this: https://toolshed.saga-castor.ts.net/alex-extractor/baedreicctl27saho3hessoeskspfqlrdbh6lypmx4pnmk7aelbjwycn3be

Console log from loading the charm while it shows this issue:

(The total console is too long so it's pasted in a google doc: https://docs.google.com/document/d/16OpZAgKHqbbxN1kgZJCGrJSFIObVPGftFdgFmt3gPOQ/edit?tab=t.0)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions