This commit is contained in:
Henrikh Kantuni 2023-04-05 01:02:45 -04:00 committed by GitHub
parent 353552d9f1
commit 2d38377f1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -245,7 +245,7 @@ This should look pretty similar to how our homepage handled the `Increment` and
### Listening for data from JS ### Listening for data from JS
We're going to add one final function to `Storage.elm` that will allow us to subscribe to events from the `load` port, that use's our `fromJson` function to safely parse the message we get back: We're going to add one final function to `Storage.elm` that will allow us to subscribe to events from the `load` port, that uses our `fromJson` function to safely parse the message we get back:
```elm ```elm
onChange : (Storage -> msg) -> Sub msg onChange : (Storage -> msg) -> Sub msg