Skip to content

Conversation

@mardukbp
Copy link
Contributor

As discussed in #71 Redux DevTools allows triggering the actions defined in the config parameter actionCreators.
This is an array of POJOs with the fields name and args used for building the UI for triggering the actions. The
name and the args' values are sent back to the application in a message with the field type set to ACTION.

This PR extends Elmish Debugger to:

  • Allow configuring the actionCreators parameter of the browser extension
  • Handle the ACTION message from Redux DevTools

Reflection is used to dynamically populate actionCreators with all the actions defined in the application and also to dynamically dispatch the action received from Redux DevTools. Since Fable erases generics at runtime the function withDebuggerUsing has to be inlined so that the generics can be resolved at compile time.

mardukbp added 2 commits May 10, 2025 10:44
…Creator for each case of the Program's msg discriminated union
…tching the corresponding application message
@et1975 et1975 requested a review from MangelMaxime May 12, 2025 13:57
@et1975
Copy link
Member

et1975 commented May 12, 2025

Looks good to me, @MangelMaxime any concerns?

@et1975 et1975 merged commit ca62149 into elmish:v4.x May 12, 2025
2 checks passed
@et1975
Copy link
Member

et1975 commented May 12, 2025

Thanks, released as 4.2.2!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants