When i query a document reference and attach a boolean to the toggle switch's initial value to read a boolean data from the document, it doesn't correctly load the value. It always returns false. I even disabled query caching.
Possible Bug: TOGGLE SWITCHES NOT UPDATING
Widgets & Design
So the work around I did was I loaded the document on page load and stored it to a local page state variable as document. Then i routed it next to a series of SET FORM FIELD and set the proper variables based from the local document stored. It all worked and loaded the toggle switches correctly.
No