team-de-la-canvas / huhhu

Connecting like-minded students - A feasibility prototype
https://huhhu.app
0 stars 0 forks source link

lets move control-flow control from redux store to react components, in order to avoid circular dependencies (calls between stores) #87

Open themassiveone opened 1 year ago

themassiveone commented 1 year ago

That way we may expand into using more than one store safely

themassiveone commented 1 year ago

its just fair to have call-control within the ui callbacks. Im thinking: const register = useRegister(success => login()) const login = useLoging();

themassiveone commented 1 year ago

otherwise it feels like magic to the ui layer, that should be the case

themassiveone commented 1 year ago

Only other problem: piggyBacking. The user should need to deal with that. Maybe this is not gonna be a problem anymore as soon as we moved to connection-based protocols for fast message exchange. Or long-polling eventhough, this might result in the same problem as before