Skip to content

Conversation

TMSBK
Copy link
Contributor

@TMSBK TMSBK commented Jan 22, 2019

No description provided.

const MAX_LENGTH = 400;

Template.Comment.onRendered(function () {
Waypoint.refreshAll();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nem kene itt valahova egy subscriptionsReady?
Amikor rajzoljuk ki a kommenteket, es rendereljuk ki oket sorba, mindegyik utan az osszes Waypoint-ot ujra fogjuk szamolni.
Sok comment eseten nem fogja ez baromira belassitani a board kirenderelest?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hát meg lehet azt csinálni valahogy, hogy egy child template onRendered eventje csak azután működjön, hogy a parent template subscriptionReady értéke true?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Biztos meglehet. Csak hivatkozni kene tudni innen a parent-ra.
A Blaze-ben is fel lehet hivatkozni ugy hogy ../
akkor itt is biztos lehet valahogy.
Akkor ugy jo lenne, ha csak akkor fut le, ha mar subscriptionReady van, es nem minden egyes komment utan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants