Access the Redux Store Outside a React Component?

Hey All,

I remember being able to do this back in my vanilla JS react days.

Is there a way to get the state and dispatch actions in ReScript, without using useReducer?

Here’s a link to an article that will give you some more background.

Why would you want to do this?

For example when using Android, with React Native, and it has a long running background process for notifications; when your app is closed or in a background state it’s not possible to update GUI but you still want some state changes based on notifications.