Open markus2330 opened 10 months ago
@badnames Can you please also explain, why a stage listeners functionality was needed? https://github.com/ElektraInitiative/PermaplanT/blob/9f142c507d329f56aa77d505a188463ad4e65725/frontend/src/features/map_planning/components/BaseStage.tsx#L34 Currently it seems a bit convoluted this way. If you look at the plant layer https://github.com/ElektraInitiative/PermaplanT/blob/9f142c507d329f56aa77d505a188463ad4e65725/frontend/src/features/map_planning/layers/plant/PlantsLayer.tsx#L215 there is a backed-in functionality to listen to native Stage events. Maybe I am missing something?
Stage
Originally posted by @Bushuo in https://github.com/ElektraInitiative/PermaplanT/issues/1152#issuecomment-1881760174
Maybe I am missing something?
No, you are right :+1: It should be changed.
This was already removed in some branch, although it has not found its way into master yet.
Isn't it in #1135?
@badnames Can you please also explain, why a stage listeners functionality was needed? https://github.com/ElektraInitiative/PermaplanT/blob/9f142c507d329f56aa77d505a188463ad4e65725/frontend/src/features/map_planning/components/BaseStage.tsx#L34 Currently it seems a bit convoluted this way. If you look at the plant layer https://github.com/ElektraInitiative/PermaplanT/blob/9f142c507d329f56aa77d505a188463ad4e65725/frontend/src/features/map_planning/layers/plant/PlantsLayer.tsx#L215 there is a backed-in functionality to listen to native
Stage
events. Maybe I am missing something?Originally posted by @Bushuo in https://github.com/ElektraInitiative/PermaplanT/issues/1152#issuecomment-1881760174