mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 09:17:43 +03:00
a230de2f82
* Support getting started guide on Daml Hub This is annoyingly complex so let me try to provide an explanation for the changes: 1. On Daml hub, we need to use a separate token for the public party and the user party. 2. This means that we need separate contexts. I cannot get access to the default context (not exposed) so annoyingly even for the user context we need to use a custom context 3. The way to get access to the public party in Daml hub is via a hook that reads it from the context. However, we cannot call that within the login callback so the way things work now that we login immediately show a "Logging in..." loading screen while we run the background query. This is actually kinda nice since it means something happens immediately after clicking login. I’m sure there are better ways of handling this, my react foo is very weak but this is what I managed to get to work. Tested locally as well as on Daml hub and both work fine. changelog_begin changelog_end . . . . . . . * s/any/void/ * fmt |
||
---|---|---|
.. | ||
index.test.ts | ||
messaging.patch | ||
testDeps.json |