Skip to content

Conversation

@David-Gil
Copy link
Contributor

@David-Gil David-Gil commented May 15, 2018

#8

Note this is a proof of concept and not intended to be final. I made the least possible changes to make it work.

With this patch, logs get automatically printed in the browser console.

At this stage, I'd like to know whether this is more or less what you wanted before passing to the next stage, which is showing the log info in a specific page of the Phoenix application.

@tmecklem
Copy link
Member

@David-Gil This is pretty close to what I was thinking. You're headed in the right direction!

@David-Gil
Copy link
Contributor Author

@tmecklem My main concern is how to maintain and update the list of logs (the variable state) since logs will keep updating and the user will change from one page to the other, but the list of logs has to keep updating.

In Elm the program state is in the Model and this Model is accessible throughout the program.

OTOH, I don't know how to keep and update state in JS, where to put a variable that can be accessed when and where it's needed.

I need some guidance in this respect.

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.

2 participants