How to manage query parameters with Wix Site Location SDK

Introduction:
Query parameters let you pass data through URLs, making it easy to create dynamic content, filter results, and manage state in web applications. They’re a powerful way to share and manipulate data without needing to reload a page. In this video, you’ll learn how to create, update, remove, and retrieve query parameters using the Wix Site Location SDK—plus, see them in action with a live demo. Watch now to level up your web development skills! :rocket:

Tools, Documentation and APIs:
Wix Site Location SDK Docs

Example:

May I ask why the methods are promises?

Hey! Only location.query returns a promise in SDK (not add or remove) but - good eye, it did not in velo. As for the why, I do not have that information handy but I’ll see if I can find out more about the implementation approach.

@DeanAyalon From the API team they stated that under the hood the API are called from worker to the main thread and since it’s message passing - it is required to run asynchronous.