[plugin-observable] Observables not working as expected
See original GitHub issueHi 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:
- Created 5 years ago
- Comments:24 (22 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/cssinjs/jss/blob/master/changelog.md#981--2018-03-19
Has anyone had any luck with this? Just ran into it 3 years later.