OpenRailAssociation / osrd

An open source web application for railway infrastructure design, capacity analysis, timetabling and simulation
https://osrd.fr
436 stars 40 forks source link

Generalize usePathProperties #8348

Open SharglutDev opened 1 month ago

SharglutDev commented 1 month ago

Description and goal

A few weeks ago, the usePathProperties hook has been created to be added in useSpeedSpaceChart.

We should reuse this hook to simplify all call to this endpoint where it's used.

Acceptance criteria

This hook is used in the following files :