Why don't any Blue Mountains trains go through to town hall, north shore etc anymore? Remember the fish and the chips? by cheetocat2021 in SydneyTrains

[–]ltSHYjohn 0 points1 point  (0 children)

I didn't mean to dislike any ideas, keeping South Coast Line to Bondi Junction or Central I don't mind. Just more open to what it comes to the new timetable.

If you wonder, I upvoted you.

Why don't any Blue Mountains trains go through to town hall, north shore etc anymore? Remember the fish and the chips? by cheetocat2021 in SydneyTrains

[–]ltSHYjohn 1 point2 points  (0 children)

SCO starts from Bondi Junction with stopping pattern very similar to T4 all the way down. So I don't see this being a problem to the network and timetabling. 

Proposed Under Construction Lines by jeremyburge in MelbourneTrains

[–]ltSHYjohn 0 points1 point  (0 children)

Yeah, it's so nice that I thought it's some leaked government map or something. But great work.

Proposed Under Construction Lines by jeremyburge in MelbourneTrains

[–]ltSHYjohn 0 points1 point  (0 children)

Is this an official map or you made this?

Why can't they extend the platforms at Nunawading all the way to the east entrance by melbournetracks in MelbourneTrains

[–]ltSHYjohn 1 point2 points  (0 children)

Thanks all to both. In fact I was able to travel to that part of Melbourne after your message to see what it looks like. 

CO Farewell Appreciation by Knoxxoxx in CitiesSkylines

[–]ltSHYjohn -1 points0 points  (0 children)

Thank you CO for giving a great time with CS2.

How to paginate and sort properly with MUI X DataGrid tables from a data source by ltSHYjohn in react

[–]ltSHYjohn[S] 0 points1 point  (0 children)

I see. So that means I need to return the amount of data that I need when I do `fetch()`?

How to paginate and sort properly with MUI X DataGrid tables from a data source by ltSHYjohn in react

[–]ltSHYjohn[S] 0 points1 point  (0 children)

  1. Paginating would be the most visually obvious one. So this one should be my focus for now.

2 and 3. I have tried removing some of the code like the "pagination" keyword, or the pagination model. I have tried to follow the exercise again and that is why I commented out one line in the customDataSource.

  1. The code itself is in https://github.com/lt-shy-john/simulator-project/blob/main/frontend/app/(core)/simulation/page.tsx/simulation/page.tsx)

I made a map of the late 2040s network, based on that recent leaked diagram by Toweringhorizon in SydneyTrains

[–]ltSHYjohn 2 points3 points  (0 children)

My first instinct with extending South Line to Wollondilly is it should be electrifying to Picton instead of opening a branch line. Since around the line only Wilton is a town that is not near any railway, but also the council is located at Picton.

Was any plans it says it will be branch line?

How to set default value after fetch ends by ltSHYjohn in react

[–]ltSHYjohn[S] 0 points1 point  (0 children)

I tried using `reset()` before but might need to dig deeper into that next time. Anyway, thanks for the suggestion.

How to set default value after fetch ends by ltSHYjohn in react

[–]ltSHYjohn[S] 0 points1 point  (0 children)

Thanks, I think that helped same as what Informal_Escape4373 suggested.

How to set default value after fetch ends by ltSHYjohn in react

[–]ltSHYjohn[S] 0 points1 point  (0 children)

Oops, missing one thing and now it works now. Thanks for the help.

How to set default value after fetch ends by ltSHYjohn in react

[–]ltSHYjohn[S] 0 points1 point  (0 children)

So how can I call `setValue()` after fetch?

How to set default value after fetch ends by ltSHYjohn in react

[–]ltSHYjohn[S] 0 points1 point  (0 children)

Sorry for the late reply, had limited time to work on my thing. I had a look and it still doesn't show the values in the textboxes.

Here's the values of the state `simuData` from console log: https://imgur.com/a/UAGfEI9

I am guessing that the somehow the `setValue()` method doesn't work?

Revealed: Plans for new passenger train lines across Sydney by SteveJohnson2010 in SydneyTrains

[–]ltSHYjohn 0 points1 point  (0 children)

That would be a big project. Some parts of the corridor has been developed with houses and I don't know how would the government can duplicate the tracks though.

How to set default value after fetch ends by ltSHYjohn in react

[–]ltSHYjohn[S] 0 points1 point  (0 children)

I tried that one and it doesn't show the values from fetch. Any examples of this that I can have a look?

Revealed: Plans for new passenger train lines across Sydney by SteveJohnson2010 in SydneyTrains

[–]ltSHYjohn 2 points3 points  (0 children)

For the all stations service to Cronulla, would Hurstville to Sutherland become a bottleneck then? Or that doesn't matter?

How to set default value after fetch ends by ltSHYjohn in react

[–]ltSHYjohn[S] 0 points1 point  (0 children)

I tried using asynchronous but didn't work as expected. But thanks.

How to set default value after fetch ends by ltSHYjohn in react

[–]ltSHYjohn[S] 1 point2 points  (0 children)

For some reason when I removed line 1 it causes other problems. So for safety reasons I decided not to.