@unitedstatespowersquadrons/components 1.2.11-debug.2 → 1.2.11-pre.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,7 +17,7 @@ export default function buildReducer<AppState, AppAction>(
17
17
  const DispatchContext = createContext<React.Dispatch<AppAction> | null>(null);
18
18
  const CableContext = createContext<Cable | null>(null);
19
19
 
20
- const cable = createConsumer(); // DEV: This should be able to implicitly get the meta tag
20
+ const cable = createConsumer();
21
21
 
22
22
  function AppProvider(props: InitialAppProps<AppState>) {
23
23
  const [providerState, dispatch] = useImmerReducer(reducer, props.initialState, (state: AppState) => {
@@ -64,14 +64,9 @@ export default function buildReducer<AppState, AppAction>(
64
64
  const channelRef = useRef<Channel>(null);
65
65
 
66
66
  useEffect(() => {
67
- console.log({ subscribingTo: channel });
68
67
  channelRef.current = appCable.subscriptions.create(
69
68
  { channel },
70
- {
71
- connected: () => console.log({ connected: true }),
72
- received: (data: object) => dispatch({ data, type: "receivedCable" } as CableAction),
73
- rejected: (data: object) => console.log({ data }),
74
- }
69
+ { received: (data: object) => dispatch({ data, type: "receivedCable" } as CableAction) }
75
70
  );
76
71
  }, [appCable, channel, dispatch]);
77
72
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unitedstatespowersquadrons/components",
3
- "version": "1.2.11-debug.2",
3
+ "version": "1.2.11-pre.1",
4
4
  "description": "USPS shared React components library",
5
5
  "main": "index.tsx",
6
6
  "scripts": {