In my data default property I have published: null, and on mount I am setting it to either true or false once the value is retrieved however this is what then triggers the infinite loop. How should I set the checked state on load with it the change function running?
Hey @nolimits4web - thanks for your response on this. Your solution would work if I didn’t need to display the toggle. As you correctly assumed, I am wanting to set the checked state based on a value, which I’m simply doing when the page is mounted with this.published = doc.data().public