-
-
Notifications
You must be signed in to change notification settings - Fork 420
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
Nothing is received from DOM source until something is emitted on DOM sink. #791
Comments
rmeoc
added a commit
to rmeoc/cyclejs
that referenced
this issue
Mar 25, 2018
The elementAfterPath$ stream was immediately sampled, while elementAfterPath$ only starts emitting once the DOM is ready, causing the first emission of elementAfterPath$ to be missed. By postponing the first sample of elementAfterPath$ until the DOM is ready, we make sure that we don't miss this first emission. ISSUES CLOSED: cyclejs#791
3 tasks
rmeoc
added a commit
to rmeoc/cyclejs
that referenced
this issue
Mar 26, 2018
…ementAfterPath$ stream was immediately sampled, while elementAfterPath$ only starts emittingonce the DOM is ready, causing the first emission of elementAfterPath$ to be missed. By postponingthe first sample of elementAfterPath$ until the DOM is ready, we make sure that we don't miss thisfirst emission.ISSUES CLOSED: cyclejs#791
rmeoc
added a commit
to rmeoc/cyclejs
that referenced
this issue
Mar 26, 2018
The elementAfterPath$ stream was immediately sampled, while elementAfterPath$ only starts emitting once the DOM is ready, causing the first emission of elementAfterPath$ to be missed. By postponing the first sample of elementAfterPath$ until the DOM is ready, we make sure that we don't miss this first emission. ISSUES CLOSED: cyclejs#791
staltz
pushed a commit
that referenced
this issue
May 4, 2018
The elementAfterPath$ stream was immediately sampled, while elementAfterPath$ only starts emitting once the DOM is ready, causing the first emission of elementAfterPath$ to be missed. By postponing the first sample of elementAfterPath$ until the DOM is ready, we make sure that we don't miss this first emission. ISSUES CLOSED: #791
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code to reproduce the issue:
https://jsbin.com/kopipeceru/1/edit?html,js,console,output
Expected behavior:
Until something is emitted on the DOM sink, the streams returned by the DOM source emit the elements and events for the initial state of the DOM.
For the example code this means that:
Actual behavior:
Until something is emitted on the DOM sink, the streams returned by the DOM source do not emit anything.
For the example code this means that loading the page or clicking on the button does not result in console messages
Versions of packages used:
The text was updated successfully, but these errors were encountered: