Open arsduo opened 6 years ago
FWIW I'm no longer seeing that problem -- instead, the history entries are being exported without the constructors.
For instance, I'm getting this:
{
"history": [
{
"$": "Just",
"a": "{\"authToken\":{\"access_token\":\"MY_TOKEN\"}}"
}
]
}
instead of
{
"history": [
{
"$": "StoredUserCredentialsRetrieved",
"a": {
"$": "Just",
"a": "{\"authToken\":{\"access_token\":\"MY_TOKEN\"}}"
}
}
]
}
An example app I use (a slightly expanded version of the counter example) is experiencing a bug with Elm's debug history exports. Compiled with either elm-make or with webpack, clicking the counter buttons a few times and then exporting the history yields malform data like:
The export function works fine for @rtfeldman's Elm SPA example, so it must be something subtle about this code, but for the life of me I can't figure it out.
Expected: the history field contains data about the messages that have been received
Actual: each entry is null.
SSCCE: https://github.com/arsduo/elm-history-export-bug
OS/browser: OS X 10.13.6, behavior consistent across Firefox/Chrome/Safari. A colleague was also able to reproduce this using the example on OS X.