thomashoneyman / purescript-halogen-realworld

Exemplary real world application built with PureScript + Halogen
https://thomashoneyman.com/guides/real-world-halogen
MIT License
792 stars 86 forks source link

Migrate from aff-bus to halogen-store #85

Closed thomashoneyman closed 3 years ago

thomashoneyman commented 3 years ago

This PR migrates from the previous global state implementation using aff-bus to a new one based on halogen-store. If you're curious about what halogen-store offers, please see that library's documentation!

thomashoneyman commented 3 years ago

cc: @and-pete. I'm curious if this helps address anything you saw in #81; I haven't had a chance to test this out, I've just put together the implementation for the time being.

and-pete commented 3 years ago

cc: @and-pete. I'm curious if this helps address anything you saw in #81

Nice! This appears to fix everything. A logged-in user's profile now both:

  1. loads on page refresh; &
  2. is present in a connected component's state when its Initialize action runs

Thanks for this and for the store library :)