The onRendered meteor is called only once.

After many hours of experimentation and reading, I still do not understand why it myTemplate.onRendered(function() {...})is called only once.

Depending on where you read, you get different information, but apparently it needs to be called every time the internal HTML changes, which does not happen in my experiments, it is called only once and never again, regardless , What am I doing.

Reactive dependencies do not seem to force it to be called (for example, using Meteor.user()inside a callback onRendered).

+4
source share
2 answers

onRendered . , Template, template.autorun.

, XY, .

+3

. . ( ), onRendered . ( ), onRendered, .

+1

All Articles