Josef Wittmann
Josef Wittmann
There is a helper `deleteUnit`: https://github.com/josdejong/mathjs/blob/a3360d316ba6072661dd05678bfd26fdf9f674fe/src/type/unit/Unit.js#L3301-L3303 It gets used in `createUnit` when overriding: https://github.com/josdejong/mathjs/blob/a3360d316ba6072661dd05678bfd26fdf9f674fe/src/type/unit/Unit.js#L3081-L3093 We could extract this routine into it's own funciton. But I guess removing aliases automatically isn't...
This could require some design decisions. 1. Should we even allow deleting base units? If we do, we'd have to check all current units, if they depend on this base....
To make reproducing the issue easier: It also happens about 1 in every 5 times when running following test from the console. ```js const test = (top = 500) =>...
Cool, thanks for the quick response! I worked around the problem in the meantime. So it's not urgent at all. Here's the workaround: ```tsx // `react-swift-reveal` does sometimes not work....