我正在使用 mobx-state-tree,我想在出现错误时实际显示商店名称而不是 AnonymousModel。
例如:
const SignupModel = types
.model({
isUsingFacebook: false,
birthday: '',
timeOfBirth: types.maybeNull(types.string),
placeOfBirth: types.maybeNull(types.string),
gender: types.maybeNull(types.string),
password: '',
})
仍然给我一个错误
Error while converting {...} to AnonymousModel.
但我想得到
Error while converting {...} to SignupModel.