WordPress 7.0 Interactivity API gets a watch() function
WordPress 7.0 adds a programmatic watch() to the Interactivity API and populates state.url on the server, so the guard code around that first undefined value can go. Also covers the deprecated core/router navigation properties and what to use instead.