serlo / frontend

Next.js app that serves serlo.org
https://serlo.org
Apache License 2.0
38 stars 10 forks source link

Show subscription state in menu after subscribe #647

Closed Entkenntnis closed 3 years ago

Entkenntnis commented 3 years ago

Follow up of #458: Subscriptions are updated, but slowly, so subscribing content is not immediately visible in the frontend ui.

API Issue on the way: https://github.com/serlo/serlo.org/issues/514

elbotho commented 3 years ago

We should also show a toast notice. (related PR)

elbotho commented 3 years ago

Current state (far from perfect but close to okay 😄):

Todo:

Entkenntnis commented 3 years ago

Very nice, this is getting better :+1:

More me, it would be ok if we are not doing any refresh, just let the user refresh the page manually.

elbotho commented 3 years ago

okay, last 3 commits (including 50ccdfc) set the state directly, so the menu reflects the change immediately. Imo this is quite alright until we use a mutation in the long term.