From ad617d6db5edab07b38c1287122a73b59e4f7ee6 Mon Sep 17 00:00:00 2001 From: Fernando Fleury Date: Tue, 18 Aug 2020 17:14:06 +0200 Subject: [PATCH] fix(trackingroot): reorder base context arguments --- src/components/TrackingRoot/TrackingRoot.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/TrackingRoot/TrackingRoot.tsx b/src/components/TrackingRoot/TrackingRoot.tsx index 3c29b87..6334969 100644 --- a/src/components/TrackingRoot/TrackingRoot.tsx +++ b/src/components/TrackingRoot/TrackingRoot.tsx @@ -26,8 +26,8 @@ const TrackingRoot = ({ name, onDispatch, children }: Props) => { const contextValue = React.useMemo( () => ({ app: name, - elementTree: [], - dispatch: onDispatch + dispatch: onDispatch, + elementTree: [] }), [name, onDispatch] );