Use polymorphism to ditch the legacyBehavior prop in Next.js
You can't use anymore the legacyBehavior prop with the Link components and you can use the polymorphic component pattern to achieve a clean solution.
I'm Josep Viciana (aka emmgfx), a software developer based in Barcelona. I have collaborated on projects for both tiny and internationally renowned companies and organizations. I co-founded Marmota and most important: I've unlocked all the Sekiro achievements, twice.
You can't use anymore the legacyBehavior prop with the Link components and you can use the polymorphic component pattern to achieve a clean solution.
Mis propósitos para este año no son superambiciosos, son más bien como una hoja de ruta y casi todos están relacionados con otros propósitos o los pronósticos para el 2025.
I would like that this post to serve as an ending to the project wich I worked on for a while. Even while the end of the Stadia (and Stadiaffinity, as a consecuence), made me feel truly sad I need to say that both projects were a good thing for me.
3Data
we are Marmota
Digital Parks
If you want to contact with me, search for me by the nickname emmgfx in Gmail, Telegram, LinkedIn, GitHub, etc.
More about me