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
Btw, there seem to be another issue with name conflicts:
import { someFunc } from './someFile';
class SomeClass {
@transformToMobxFlow
someFunc = async () => {
await someFunc();
}
}
This code will run fine without @transformToMobxFlow. When adding it, after it is transformed, the inner call await someFunc() will reference the transformed function, and not the imported one. Is there a way to resolve this? I know it's bad practice to have conflicting names, but these are different scopes and this can happen.
Btw, there seem to be another issue with name conflicts:
This code will run fine without
@transformToMobxFlow
. When adding it, after it is transformed, the inner callawait someFunc()
will reference the transformed function, and not the imported one. Is there a way to resolve this? I know it's bad practice to have conflicting names, but these are different scopes and this can happen.Originally posted by @Tsury in mobxjs/mobx#1410 (comment)
The text was updated successfully, but these errors were encountered: