I have a Dart + Web UI app that first needs to load data from the local IndexedDB store. The IndexedDB API is asynchronous, so I will get a callback when my data is loaded. I do not want to display any UI elements until my database is first opened and ready to go.
How can I wait for my database initialization before I display my UI?
<div hidden>{{x.foo}}</div>
vs<template instantiate="if x != null"><div>{{x.foo}}</div>
, then the template-if will prevent that a null dereference, but the visibility-hidden approach wont. – Vladimir