Space2Study-UA-1156 / Client-01

MIT License
1 stars 0 forks source link

SubjectList container with reusable useViewMore hook for data fetching #257

Closed voloshynvv closed 5 months ago

voloshynvv commented 5 months ago

https://github.com/Space2Study-UA-1156/Client-01/assets/56509285/de8175fc-8fd7-4558-b94d-e9749785cba2

useViewMore hook can be reused in other components It receives the following arguments: service searchParamKey cardsPerPage

Example: image

If you need additional params for your service, don't forget to spread existing ones. limit and skip are calculated inside the hook

image

sonarcloud[bot] commented 5 months ago

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

voloshynvv commented 5 months ago

Please create task for writing tests, we lose coverage

Created task for tests. Will be implemented soon https://github.com/orgs/Space2Study-UA-1156/projects/1/views/1?pane=issue&itemId=64297454