SUBSCRIBE in custom component is working twice for every reload

i am writing pure javascript code in custom component, so to get values inside code i am using window.Retool.subscribe(function(model){}) but this subscribe was working twice for every reload

  • so i wrote window.print() inside code,it was printing double time

Hey @Chandu!

Sorry about the late reply here, would definitely want that query to only run once on reload! Is this still an issue you're seeing?

If so, could you, for context, share how the reload is being triggered? It might help to see how you have your model configured as well.