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.

[plugin-observable] Observables not working as expected

See original GitHub issue

Hi again 😃

Observables aren’t working as expected. In particular, I’ve a TC39 implementation of Observables which is not being interpreted correctly.

The problem would seem to be the isObservable function, which adds this to jss:

  var symbolObservable = lib;

  var isObservable = (function (value) {
    return value && value[symbolObservable] && value === value[symbolObservable]();
  });

Here’s some command line output that’s illuminating:

>>> Symbol.observable === symbolObservable
false
>>> symbolObservable.default === Symbol.observable
true

It’s possible there’s some weird things going on with the build process on my end (perhaps I need some webpack-commonjs bridge), but I didn’t see any tests in jss that demonstrate the use of Symbol.observable proper, so I can’t easily eliminate the possibility that it’s a jss issue.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:24 (22 by maintainers)

github_iconTop GitHub Comments

0reactions
keethcommented, Jul 12, 2021

Has anyone had any luck with this? Just ran into it 3 years later.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Need help: rxjs error in datasource plugin #26264 - GitHub
You can provide an Observable, Promise, Array, or Iterable when return observable from datasource plugin. What you expected to happen: No error, ...
Read more >
angular 2 observable , subscribe not working - Stack Overflow
I am doing basic test of angular observable to observe keyup of a textbox, i am not getting any error but subscribe is...
Read more >
3 Common Rxjs Pitfalls (and how to avoid them)
This means that because the Observable will not complete, the router will "hang" the routing transition and the UI will not show the...
Read more >
How to test Observables. The ultimate guide - Medium
An Observable never emits a value in a test if we don't subscribe to it. To solve this problem, ... But hang tight,...
Read more >
Using RxJS operators to consume Observables
They are called on existing Observables and they do not change the Observable instance, rather, they return a new Observable with a ...
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