zent
Version:
一套前端设计语言和基于React的实现
20 lines (17 loc) • 535 B
text/typescript
import { warningOnce } from '../../utils/warningOnce';
export function warningSubscribeValue(shouldWarn: boolean, tag: string) {
warningOnce(
!shouldWarn,
`form-subscribe-value-${tag}`,
'Subscribe `value` of %s might cause performance issues, do it with caution.',
tag
);
}
export function warningSubscribeValid(shouldWarn: boolean, tag: string) {
warningOnce(
!shouldWarn,
`form-subscribe-valid-${tag}`,
'Subscribe `valid` of %s might cause performance issues, do it with caution.',
tag
);
}