Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprekoi react-hookstore #286

Open
6 tasks
Vekkumasa opened this issue May 7, 2021 · 1 comment
Open
6 tasks

Deprekoi react-hookstore #286

Vekkumasa opened this issue May 7, 2021 · 1 comment

Comments

@Vekkumasa
Copy link
Collaborator

Vekkumasa commented May 7, 2021

Deprekoi react-hookstore. Alla poistettavat storet. Apollo Client säilyttää välimuistissaan tilaa ajaen storejen tarkoituksen. Katso esimerkkeinä commitit: 596bbfe, a98d1e8, b1c4d88

  • groupStore
  • teacherStore
  • lockedGroupsStore
  • groupsUnsavedStore
  • grouplessStudentsStore
  • mockingStore
@tikibeni tikibeni changed the title Refaktoroi storet Apollo Client: Refaktoroi storet May 10, 2021
@tikibeni tikibeni changed the title Apollo Client: Refaktoroi storet Refaktoroi storet May 10, 2021
@tikibeni tikibeni changed the title Refaktoroi storet Deprekoi storet May 16, 2021
@tikibeni tikibeni changed the title Deprekoi storet Deprekoi react-hook-store May 16, 2021
@tikibeni tikibeni changed the title Deprekoi react-hook-store Deprekoi react-hookstore May 16, 2021
@vuolen
Copy link
Collaborator

vuolen commented May 16, 2021

Kevään 2021 ryhmä deprekoi jo useamman storen, mutta työ jäi kesken. Storen deprekoinnin yksityiskohdat ovat tapauskohtaista, kannattaa tutustua Apollo Clientiin hyvin. Kannattaa ensin tutkia, mitkä React-komponentit tarvitsevat tilaa, ja mitkä komponentit päivittävät sitä. Jos storessa säilytetään dataa, joka haetaan palvelimelta, niin tuo data luultavasti sijaitsee jo Apollo Clientin välimuistissa. (Apollo Client dev tools)[https://www.apollographql.com/docs/react/development-testing/developer-tooling/] auttaa välimuistin visualisoinnissa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants