mirror of
https://github.com/zhigang1992/mobx-utils.git
synced 2026-04-28 20:25:00 +08:00
Use computedFn name if explicitly set in options (#277)
This commit is contained in:
@@ -77,7 +77,7 @@ export function computedFn<T extends (...args: any[]) => any>(
|
||||
},
|
||||
{
|
||||
...opts,
|
||||
name: `computedFn(${fn.name}#${++i})`,
|
||||
name: `computedFn(${opts.name || fn.name}#${++i})`,
|
||||
}
|
||||
)
|
||||
entry.set(c)
|
||||
|
||||
Reference in New Issue
Block a user