Pass a parameter from one page to another page

Hi @Emil, thanks for your reply but I think that only holds for single page. Here, we are talking about multiple pages i.e. sharing data between layouts.

This is the challenge we are trying to solve (page-1-dropdown and page-2-content are parts of different layouts, see @ajeeteshmishra’s code above):

@app.callback(Output('page-2-content', 'children'),
              [Input('page-1-dropdown', 'value')])
def page_2(value):
    return 'You selected "{}"'.format(value)

In the tutorials, dash seems to require Input and Output come from the same layout.

So far @marlon’s How to pass values between pages in dash seem to be the only viable option. But I think that is a hack and the code is a little cumbersome. So, I am still looking for a better way to share data between pages.