Timestamp 使用redux reducer键的时间戳

Timestamp 使用redux reducer键的时间戳,timestamp,react-native,redux,reducers,Timestamp,React Native,Redux,Reducers,我正在考虑在React Native reducer中使用以下模式将时间戳用作事件的键: events: ["1458337324","1458399999","1458442999","1458443999"], event_types: { "1458227324":"NET::connected", "1458442999":"ACT::pause", ... 这是反模式吗 其次,我计划使用时间戳作为外键关系访问其他事件对象,因此我需要在每个reducer中使用相同的时间戳。

我正在考虑在React Native reducer中使用以下模式将时间戳用作事件的键:

events: ["1458337324","1458399999","1458442999","1458443999"],
event_types: {
  "1458227324":"NET::connected",
  "1458442999":"ACT::pause",
  ...
这是反模式吗


其次,我计划使用时间戳作为外键关系访问其他事件对象,因此我需要在每个reducer中使用相同的时间戳。我可以从每个操作创建并发送时间戳,但是是否有更简单的方法每次通过每个减速机发送全局时间戳