Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging a projection does not update state #328

Open
hayley-jean opened this issue Jun 28, 2022 · 0 comments
Open

Debugging a projection does not update state #328

hayley-jean opened this issue Jun 28, 2022 · 0 comments

Comments

@hayley-jean
Copy link
Member

The state of the projection is not updated correctly when stepping through a projection to debug it.
When running the projection normally without debugging, the state is updated as expected.

To reproduce:

  1. Create a projection with the following code:
fromStream("test-stream")
.when({
	$init: function(s) {
		return { count: 0 }
	},
	$any: function(s) {
		s.count++;
	}
})
  1. Open the debug screen for the projection
  2. Open the dev tools for your browser
  3. From another window/application, write an event
  4. Check that the event appears in the debug view on the left
  5. Click Run Step. The debugger in the dev tools will break just before the event handler code, and you can use the dev tools debugger to step through the handler.
  6. Step through the projection code until the event has been handled. The state is not updated.

EventStoreDB version: >= 21.10.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant