Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

garethdaine's avatar

Update Spark State User...

Hi Folks,

Is there a way to update spark.state.user when working via Vue JS/AJAX?

I have an AJAX login and I can update the global user object using the global event bus and calling Bus.$emit('updateUser') which calls Spark.getUser();, but it does not update the state.

Does anyone know of a way to do this?

0 likes
0 replies

Please or to participate in this conversation.