We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
用例如下:
const a = useReactive({ b: /123/ }) a.b.test('321')
此时浏览器就会报错 Uncaught TypeError: Method RegExp.prototype.exec called on incompatible receiver [object RegExp]
Uncaught TypeError: Method RegExp.prototype.exec called on incompatible receiver [object RegExp]
目前拿到的 a.b 是一个被 Proxy 包裹的 RegExp ,在后续的使用中造成了麻烦,希望可以在 get 时增加一些类型判断,在必要时返回原始类型的数据。
a.b
Proxy
RegExp
get
🫡🫡🫡
The text was updated successfully, but these errors were encountered:
出于什么原因?要在 正则 上用 useReactive
Sorry, something went wrong.
虽然这种特殊的值在 useReative 里可能不太常用,但是已经在处理了,PR 如果能合并的话,这个问题就可以解决了 @xluoyu
liuyib
Successfully merging a pull request may close this issue.
用例如下:
此时浏览器就会报错
Uncaught TypeError: Method RegExp.prototype.exec called on incompatible receiver [object RegExp]
目前拿到的
a.b
是一个被Proxy
包裹的RegExp
,在后续的使用中造成了麻烦,希望可以在get
时增加一些类型判断,在必要时返回原始类型的数据。🫡🫡🫡
The text was updated successfully, but these errors were encountered: