LWC - Logs not created for some lifecycle events when using new createLogger() pattern #518
Labels
Layer: Logger Engine
Items related to the core logging engine
Logging Source: Lightning Components
Items related to using Nebula Logger using JavaScript within lightning components (lwc & aura)
Type: Bug
Something isn't working
Milestone
Reported by @shuylern in this discussion: #515
UPDATE
I was able to determine that the saveLog() was actually being executed prior to the logger actually finishing its creation.
I did this on the wire call which returned a forced Error from the Apex controller.
I added a setTimeout method that paused the saveLog() for 2.5 seconds after the logger creation was initiated. This resulted in the Log (error) being created without issue.
I am still interested in knowing if there is a delivered solution that I may have overlooked.
Originally posted by @shuylern in #515 (comment)
The text was updated successfully, but these errors were encountered: