From b280c63799232dd26d64e5d72d15d6b8e77f6fd4 Mon Sep 17 00:00:00 2001 From: cha0s Date: Wed, 27 Jan 2021 16:27:50 -0600 Subject: [PATCH] refactor: only decorate response for now --- packages/redux/src/packets/action.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/redux/src/packets/action.js b/packages/redux/src/packets/action.js index b383705..8597cf4 100644 --- a/packages/redux/src/packets/action.js +++ b/packages/redux/src/packets/action.js @@ -5,12 +5,6 @@ const decorate = compose( Packer(), ); -const ActionPacket = (latus) => class ActionPacket extends Packet { +const ActionPacket = () => class ActionPacket extends Packet {}; - static respond(packet) { - latus.get('%store').dispatch(packet.data); - } - -}; - -export default (latus) => decorate(ActionPacket(latus)); +export default () => decorate(ActionPacket());