team-de-la-canvas / huhhu

Connecting like-minded students - A feasibility prototype
https://huhhu.app
1 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 11 months ago

themassiveone commented 11 months ago

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

themassiveone commented 11 months ago

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

themassiveone commented 11 months ago

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

themassiveone commented 11 months 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