jamespot-front-business
v1.1.76
Published
typescript utils
Downloads
749
Maintainers
Readme
JamespotFrontBusiness
This project contains features shared across Jamespot Fronts (Mobile/Desktop)
You can access all redux-toolkit slice, actions, selectors.
How to use
import React, { useEffect } from 'react';
import { useDispatch, useSelector } from 'react-redux';
const component = () => {
const dispatch = useDispatch();
const list = useSelector(AssetReservation.selectors.bookableAssetEntities);
useEffect(() => {
dispatch(AssetReservation.actions.fetchBookableAsset());
}, [dispatch]);
return <></>;
};