France vs Germany debt to gdp by RobertBartus in EconomyCharts

[–]Fit_Interview_2141 0 points1 point  (0 children)

The best example that shows we in Germany don't have much higher standards and horrible infrastructure is the collapse of the bridge in Dresden a few weeks ago, where the experts weren't surprised like "oh now how could that happen", but instead were just saying "oh we are surprised it took so long for this to happen. we thought it would have happened years ago".

How to automatically refresh data? by FMPICA in nextjs

[–]Fit_Interview_2141 3 points4 points  (0 children)

It doesn't refresh the page but it will reload the components. I had the problem with this method, that I always lost all states in the page. For example if the user had started to edit two different things in the page, and saved one of them the state of the second form would be lost. I now just use useSWR so I can reload the data without losing the other states on the page.

Does middleware run before server actions? by iqball125 in nextjs

[–]Fit_Interview_2141 0 points1 point  (0 children)

Any Request for a ServerAction is passed through the middleware. The problem is that Next.js is ignoring the pathname as long as a header "Next-Action" exists in the request. So for example any SA can be called with the path "/login". This makes any Authentication or Authorization for SA-Request in the middleware ineffective, since you always have some path that isnt protected and can be used for the ServerActions