Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Error: Trying to use DamlLedgerContext before initializingForum ↗

Error: Trying to use DamlLedgerContext before initializing

App Development2 posts570 views2 likesLast activity Apr 2021
PA
palanisamycOP
Apr 2021 1

Hi,

We are trying to integrate DAML with React application. While we do that getting the attached error. Does anybody faced the same issue ?

Looking forward some suggestion. Thanks in advance.

Regards,
Palani

CO
cocreature
Apr 2021 1

Hi @palanisamyc,
based on the error, it looks like you didn’t wrap the code that uses the hooks in the DamlLedger context provider. You can see an example of how to do that in create-daml-app.

← Back to Discussions