Open kireerik opened 1 year ago
Also it would be nice if objects
are stringified as well in case they have a custom (non native code
) toString
method.
Seems like this (https://github.com/emotion-js/emotion/issues/3061#issue-1770421291) was resolved recently at least for now.
Current behavior: I am getting the following error: https://github.com/emotion-js/emotion/blob/f3b268f7c52103979402da919c9c0dd3f9e0e189/packages/serialize/src/index.js#L182-L186
Expected behavior: Getting no error at all.
Environment information:
react
version: none@emotion/react
version: noneI recommend we modify the following line: https://github.com/emotion-js/emotion/blob/f3b268f7c52103979402da919c9c0dd3f9e0e189/packages/serialize/src/index.js#L180
like this for example: