Redux use with Event Calendar

Hi, i’ve been using mobiscroll event calendar module for a while now. its great. I was wondering if there are resources for redux integration in EventCalendar, this was basically what I tried and failed. Previously, I had just loaded the event at the component level state with useState hook, which works fine.
const [events, setEvents] = useState(initialEvents) <— this works
const { events, isLoading } = useSelector((state: RootState) => state.events) <— this does not

any ideas why?

Hello @Ridhwan_Hassan :wave:

As we discussed in the other thread:

You can’t pull from the redux store directly, but you still need to mount it in the component state.

1 Like