Skip to content

Using polite / assertive, via composition, inside a watcher #41

@felixzapata

Description

@felixzapata

Hi, is there any kind of handicap using the announcer, via composition, inside a watcher?

watch(s, (s1) => {
  if (s1 === 0) {
    polite('no sessions found');
  } else {
    polite('found x sessions');
  }
});

I am suffering strange behaviors when I use, for example, the polite function inside a simple watcher after receiving a change. The weird behavior affects the computed properties of other components on the same page; the computed property is regenerated repeatedly (it looks like the polite is forcing some kind of render).

I do not know yet what is the root problem but what I know is if I remove the polite calling inside the watcher, the strange behaviors disappear.

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