projectfluent / cached-iterable Goto Github PK
View Code? Open in Web Editor NEWIterables which cache the values they yield
Iterables which cache the values they yield
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 :)
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
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.