I have an app I’ve been making for a couple of years not and I am using the Materialize library to style it.
I have a select box on one view that I’m populating from a collection, but noticed it didn’t always populate before page load.
I’ve added a
Template.subscriptionsReady #if block around the template reference, but it still doesn’t always get the select options populated before the page loads more times than not.
Right now, I’m putting a setTimeout around the jquery portion of the Materialize select setup in the
Template.<name>.onRendered section, but I feel like that’s pretty hacky.
Any thoughts on what I might need to do to give the select options time to populate before displaying the template to the user?