Skip to content

Migrating to v3.22 #1566

Answered by amannn
omermecitoglu asked this question in Q&A
Nov 21, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

some breaking changes in v3.22

You mean updating to createNavigation requires some changes, right? Version 3.22 is by itself just a minor version with full backwards compatibility, so you can upgrade at your own pace if desired. The upcoming v4 will eventually removed deprecated navigation APIs in favor of createNavigation though.

But in regard to your question: If you use pathnames, the Link component from createNavigation will help you to make sure that only known pathnames can be received as an href. While for simple pathnames without any params this is just a typed string, in case you support pathnames with params (e.g. /users/[userId]) this will require passing the params separatel…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@omermecitoglu
Comment options

@omermecitoglu
Comment options

Answer selected by omermecitoglu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants