Pass value with a button to another page

Hello, I need to pass any value when I click on the Projects option on another page, how can I do this? with GET method,cache or something like that?

My script

frappe.pages[‘test-page’].on_page_load = function(wrapper) {
var page = frappe.ui.make_app_page({
parent: wrapper,
title: ‘Test’,
single_column: true
page.add_menu_item(‘Projects’, () => frappe.set_route(‘List’, ‘Project’))

You can use any global property to pass values, you don’t need to save it in the route.