useApi now takes dependencies. #253

Collaborator
  • useTemperatureTimeSeriesView and useTemperature uses the shared api
    function useApi
  • All function that previously used useApi have been modified to also
    send dependencies. Send null if no dependencies are needed.
+ useTemperatureTimeSeriesView and useTemperature uses the shared api function useApi + All function that previously used useApi have been modified to also send dependencies. Send null if no dependencies are needed.
+ useTemperatureTimeSeriesView and useTemperature uses the shared api
function useApi
+ All function that previously used useApi have been modified to also
send dependencies. Send null if no dependencies are needed.
c24elipe 2026-04-13 09:05:41 +00:00
Collaborator

ScheduleView is giving an error, I assume this is because the API_URL is 'temp'.

Other than that everything is displayed, tested running everything and everything shows and updates as they should. Added the SMHI views and tested them as well, they worked.

Could be a good idea to add a comment stating to send null if no dependencies are needed.

ScheduleView is giving an error, I assume this is because the API_URL is 'temp'. Other than that everything is displayed, tested running everything and everything shows and updates as they should. Added the SMHI views and tested them as well, they worked. Could be a good idea to add a comment stating to send null if no dependencies are needed.
b24idalu left a comment
Collaborator

See comment in discussion

See comment in discussion
Collaborator

Ran the code, it worked.
Also, the requested comment was added from @b24idalu's review.

Also, after some discussion with @a22erigr, I fixed some issues with importing unused dependencies.

I call it good enough to merge!

Ran the code, it worked. Also, the requested comment was added from @b24idalu's review. Also, after some discussion with @a22erigr, I fixed some issues with importing unused dependencies. I call it good enough to merge!
c24elipe merged commit b52057519c into team_2_week_1 2026-04-13 13:16:54 +00:00
c24elipe deleted branch #246-Make-shared-API-to-take-dependencies,-to-make-it-compatible-with-useTemperature 2026-04-13 13:16:55 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Andras/BoundlessFlowCampus2K!253
No description provided.