question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Switch statement - The viewer doesn't match the designer

See original GitHub issue

I’m still on 2.3.0-preview.58 so maybe fixed already: Execution direction is fine as you can see the trail of green.

In the designer everything is looking great: image

image

Once executed it’s not quite as happy in the instance viewer: image

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
matt4446commented, Sep 7, 2021

seems to be working fine in the sample project (that rules out the browser). That probably leaves Blazor/different layouts/libraries that cause the problem. I’ll dig deeper later

1reaction
matt4446commented, Sep 1, 2021

Well, I switched the write line for JS as I don’t have those console activities ‘on’ It seems to exhaust rendering attempts:

image whereas the designer seems to work after attempt 3/4

I cant upgrade quite yet due to persistence errors: https://github.com/elsa-workflows/elsa-core/issues/1472

2.3.0-preview.58: It currently looks like image

Updated switch (1).zip

Hopefully, the upgrade fixes it. It’s not causing any trouble for me though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does my Switch-statement case not fire on exact string ...
I have tried removing the default case and added type-checks to the involved variables and it still simply does not match. I have...
Read more >
[resolved] Why will my switch statement not work when ...
switch() takes a variable with string or number type. The case is a fixed value that the argument is matched against. This is...
Read more >
Is it necessary to add the default case while using switch ...
It seems there are three cases when a default statement is not necessary: no other cases are left, because there is a limited...
Read more >
Using switch(true) in JavaScript
You probably know that the switch statement allows matching an expression (the switch ) against different values (the case ), so using switch(true)...
Read more >
Removing Switch-Case Statement and using Pattern ...
In this article, we consider how to remove switch-case statements from our code with OOP and Pattern Matching.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found