File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ Here's what I use:
3030``` ts
3131const event = ReplicatedStorage .FindFirstChild (" REFLEX_DEVTOOLS" ) as RemoteEvent
3232
33- export const devToolsMiddleware : ProducerMiddleware <RootState , RootActions > = () => {
33+ const middleware : ProducerMiddleware <RootState , RootActions > = () => {
3434 return (nextAction , actionName ) => {
3535 return (... args ) => {
3636 const state = nextAction (... args )
@@ -42,6 +42,8 @@ export const devToolsMiddleware: ProducerMiddleware<RootState, RootActions> = ()
4242 }
4343 }
4444}
45+
46+ export = middleware
4547```
4648
4749Whatever you do, fire the event an object that satisfies the following type:
@@ -59,14 +61,10 @@ interface DispatchedAction {
5961``` ts
6062export const store = combineProducers ({
6163 // ...
62- }).applyMiddleware (devToolsMiddleware )
64+ }).applyMiddleware (devTools )
6365```
6466
6567## Why does it use RemoteEvents?
6668
6769Couldn't get BindableEvents to be received by the Plugin.
6870Context: https://discord.com/channels/385151591524597761/385151591998816257/1149590579529912320
69-
70- ## Attributions
71-
72- Can be found in ` package.json `
You can’t perform that action at this time.
0 commit comments