You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling FormatterSpec.create several times in parallel on same units causes the following error:
UnitConverter.ts:87 Uncaught (in promise) _BentleyError: Source and target units do not have matching base units
at UnitConverter.processUnits (UnitConverter.ts:87:13)
at async SchemaUnitProvider.getConversion (SchemaUnitProvider.ts:180:24)
at async _FormatterSpec.getUnitConversions (FormatterSpec.ts:81:28)
at async _FormatterSpec.create (FormatterSpec.ts:110:47)
To Reproduce
Calling this function should reproduce the error on await Promise.all line:
Describe the bug
Calling
FormatterSpec.create
several times in parallel on same units causes the following error:To Reproduce
Calling this function should reproduce the error on
await Promise.all
line:Expected behavior
Both
FormatterSpec
objects are created successfully and can be used to format values.Desktop (please complete the applicable information):
4.10.1
Additional context
Originally reported in iTwin/presentation#848
The text was updated successfully, but these errors were encountered: