GithubHelp home page GithubHelp logo

cached-iterable's People

Contributors

dependabot[bot] avatar stasm avatar zbraniecki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cached-iterable's Issues

CachedAsyncIterable does not work on Edge

Still debugging things on Edge, with fluent-dom, this.bundles is empty in Localization (from DomLocalization).

As my generateBundles return a simple iterator, not an async iterator, I tried changing CachedAsyncIterable to CachedSyncIterable and it worked.

I guess CachedAsyncIterable is supposed to work too as it works in other browsers and I'd like to avoid keeping a copy of DomLocalization & Localization with this patch in my project.

so if anyone knows how to test / debug this on Edge that would be great because I can't figure out where is the problem :)

Add a way to keep state when creaing CachedIterable out of another CachedIterable

In some cases, users might want to create a Cached*Iterable themselves and pass it into APIs which use Cached*Iterable behind the scenes. For instance, in fluent-react the Localization class wraps the iterable of messages in a CachedAsyncIterable. At the same time, the user of fluent-react might want to prefetch some contexts from that iterable before handing it off to Localization.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.