You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some store variable are unused, they should be removed or moved to another reducer.
harmonize the sub-reducers (remove the types in PowerRestrictionsReducer...)
move all the types in the types file (especially OperationalStudiesConfState)
export the specific selectors or actions of each part of the store to avoid casting useOsrdConfActions() as StdcmConfSliceActions or useOsrdConfSelectors() as StdcmConfSelectors
Variables to remove:
osrdsimulation
redirectToGraph
mustRedraw
signalBase
Variables to move to another reducer:
osrdConfCommon -> operationalStudiesConf
labels
allowances
trainCount
trainDelta
trainStep
usingElectricalProfiles
powerRestrictionRanges
initialSpeed
osrdConfCommon -> stdcmConf
gridMarginBefore
gridMarginAfter
originUpperBoundDate
originUpperBoundTime
originLinkedBounds
destinationDate
destinationTime
AC & Implementation plan
the store is smaller and cleaner
The text was updated successfully, but these errors were encountered:
I also add some new tasks related to this refacto:
harmonize the sub-reducers (remove the types in PowerRestrictionsReducer...)
move all the types in the types file (especially OperationalStudiesConfState)
export the specific selectors or actions of each part of the store to avoid casting useOsrdConfActions() as StdcmConfSliceActions or useOsrdConfSelectors() as StdcmConfSelectors
Description
Some store variable are unused, they should be removed or moved to another reducer.
PowerRestrictionsReducer
...)OperationalStudiesConfState
)useOsrdConfActions() as StdcmConfSliceActions
oruseOsrdConfSelectors() as StdcmConfSelectors
Variables to remove:
Variables to move to another reducer:
AC & Implementation plan
The text was updated successfully, but these errors were encountered: