Skip to content

redux action type must be a string #263

Open
@alanhe421

Description

@alanhe421

https://github.com/reduxjs/redux/blob/789b548f065b16b1ca3c1057bf97e0a23610e087/src/createDispatcher.js#L67

image

大家可能会困惑为什么不能是symbol,因为symbol是无法序列化的,这样比如devtools的时间旅行就无法实现。

参考

Metadata

Metadata

Assignees

No one assigned

    Labels

    React前端框架

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions