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.

Babel plugin for circular dependencies

See original GitHub issue

As per discussion, sometimes the way that dialogues are developed can introduce an awkward feedback loop.

Per @staltz’ example

  const proxyTextFilterSinks = {value$: new Rx.Subject()};
  const actions = intent(proxyTextFilterSinks);
  const state$ = model(peoplePageHTTP.response$, sources.props$, actions);
  const textFilter = TextFilterWrapper(state$, sources.DOM);
  replicateStream(textFilter.value$, proxyTextFilterSinks.value$);

The development of a babel plugin could potentially ease this pain, and doesn’t require the writing of an entirely new language.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:66 (58 by maintainers)

github_iconTop GitHub Comments

6reactions
wclrcommented, Mar 29, 2016
2reactions
wclrcommented, May 5, 2016

@tusharmath made it agnostic to stream library, without rx specifics but would like people review the approach in the code https://github.com/whitecolor/cycle-circular/blob/master/src/index.js

Read more comments on GitHub >

github_iconTop Results From Across the Web

wclr/babel-plugin-cycle-circular - GitHub
Babel plugin allowing to have circular dependencies in cycle.js functions. - GitHub - wclr/babel-plugin-cycle-circular: Babel plugin ...
Read more >
circular-dependency-plugin - npm
Circular Dependency Plugin ... Detect modules with circular dependencies when bundling with webpack. Circular dependencies are often a necessity ...
Read more >
Circular Dependencies Support in Babel.js | by Agung Santoso
Circular dependency is a relation between two or more modules which either directly or indirectly depend on each other to function properly.
Read more >
How to Analyze Circular Dependencies in ES6? - Railsware
Safe option is to list all the packages that start with babel-plugin-syntax . The list can be obtained from yarn.lock . egrep '^babel-plugin- ......
Read more >
Top 5 circular-dependency-plugin Code Examples - Snyk
new CircularDependencyPlugin({ exclude: /a\.js|node_modules/, // show a warning when there is a circular dependency failOnError: false, }) : null, ...
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