daml/language-support
Martin Huschenbett d637e4fa7f
@daml/react: Initialize loading indicators of hooks with true (#6196)
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
2020-06-03 10:52:36 +00:00
..
codegen-common Use com.daml as root package (#5343) 2020-04-05 19:49:57 +02:00
codegen-main Use com.daml as root package (#5343) 2020-04-05 19:49:57 +02:00
hs/bindings Make Bearer prefix optional in Haskell ledger bindings (#5858) 2020-05-06 12:09:34 +02:00
java disable warts.Any and remove most suppressions (#6132) 2020-05-28 16:53:41 +00:00
scala disable warts.Any and remove most suppressions (#6132) 2020-05-28 16:53:41 +00:00
ts @daml/react: Initialize loading indicators of hooks with true (#6196) 2020-06-03 10:52:36 +00:00