alibaba/formily

[Bug Report] symbol value not show in devtool

Opened this issue · 1 comments

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

!Edit on CodeSandbox

Steps to reproduce

  1. 打开sandbox
  2. 新标签页的形式唤起devtool,观察field foo

What is expected?

field foo value是一个对象,
key foo对应的value是一个plain object
key bar对应的value是一个symbol

image

What is actually happening?

field foo value是一个对象,只有一个key
key foo对应的value是一个plain object
没有key bar的键值对
image

Package

@formily/chrome-extension


image
看起来是JSON.stringify函数把把symbol值给丢了