zetkin / organize.zetk.in

Organizer front-end of the Zetkin system for organizing activism
21 stars 14 forks source link

Preload data from correct org #1284

Closed richardolsson closed 3 years ago

richardolsson commented 3 years ago

This PR fixes #798 by changing the order in which various middleware handle a request on the server-side. Before it went like this:

  1. Set up store
  2. Preload data
  3. Set correct org from cookie

With this change, the order is now:

  1. Set up store
  2. Set correct org from cookie
  3. Preload data
niklasva82 commented 3 years ago

Great! Seems to solve the bug!