mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
d637e4fa7f
Having them set to `false` when they will immediately bet set to `true` does not make too much sense. This allows for simplifying uses of `useFetchByKey` where the key is know to always be present since you can now operate under the assumption that the contract is never `null` when the loading indicator is `false`. This fixes #6171. CHANGELOG_BEGIN - @daml/react: Initialize the loading indicators of ``useQuery``, ``useFetchByKey`` and their streaming variants with ``true``. This removes a glitch where the loading indicator was ``false`` for a very brief moment when components using these hooks were mounted although no data had been loaded yet. Code using these hooks does not need to adapted in response to this change. CHANGELOG_END |
||
---|---|---|
.. | ||
codegen-common | ||
codegen-main | ||
hs/bindings | ||
java | ||
scala | ||
ts |