Callback context triggered id in clientside callback

I’m using javascript to trigger page reload and to update the pathname of the href to the base page of my app- implements logout.

One path of execution deletes localStorage and sessionStorage values and reload the page, while the other just reloads the page, triggering metadata to be recollected.

How can I access ‘dash.ctx.triggered_id’ in a clientside callback? I don’t see it in the documentation.

Hello @jkunstle,

Take a look here:

It should be something like window.dash_clientside.callback_context.triggered, but you’ll have to parse exactly the information that you want out. :slight_smile:

1 Like

Awesome, thanks so much!

1 Like