This project contains code that allows you to intercept calls to your Elm App's
update function and send the message and model to the
Redux DevTools Extension.
Elm 0.18 / elm-lang/core 5.x.x
Running this with Elm 0.18 requires a one line patch to the JS code of Elm's
elm-stuff/packages/elm-lang/core/5.1.1/src/Native/Platform.jsand around line 120, just below
model = results._0;, add the following line:
typeof ElmRemoteDev !== 'undefined' && ElmRemoteDev.send(msg, model);
Your code should now look like:
... model = results._0; typeof ElmRemoteDev !== 'undefined' && ElmRemoteDev.send(msg, model); updateView(model); ...
Include the following script in your page, preferably before you mount your application:
Now recompile your app and reload it in your browser and you'll see every call
update being logged in the extension window.