A common challenge when making multi-page apps is ensuring that IDs are unique in the entire app.
Perhaps there is a way to handle this within the pages/ api, for example using uuid or a page specific string as a prefix to the ids on each page.
See the community discussion here
And a possible solution from @emilhe in the dash-extensions library as demonstrated here