luistak / windowed-observable Goto Github PK
View Code? Open in Web Editor NEWMessaging lib using a pub/sub observable scoped by namespaces.
License: MIT License
Messaging lib using a pub/sub observable scoped by namespaces.
License: MIT License
It would be nice to update both packages documentation and examples to reflects the newest changes made in this PR #164
Update README.md files along with examples, following the existent ones.
Hello. I want to add the ability to provide the global object that will be used as the communication foundation as opposed to have the code assume it is the window object. This because I have been unable to fiddle around with this code in NodeJS, and window mocks and replacements haven't proved fruitful for me.
Anyway, back to my question: If there's a specialized package for React, why does this one (the generic version) has React in its dependencies? Can those packages be removed?
I would like to have a possibility to use windowed-observable directly in a html-template via async pipe.
Hey, I'm having some trouble with code completion when I do this in my code:
export const loginObservable = createReactObservable<{ user: User | null }>(...)
The code that uses the above:
import { loginObservable } from "user"; // some imported workspace module
const {
ObservableProvider: LoginProvider,
useObservable: useLoginObservable,
} = loginObservable;
function App() {
const { data } = useLoginObservable();
///...
Now, in VS Code, when I type data.
I don't get any suggestions for 'user' whatsoever. I dug into the library's types and found:
export type DataType<T> = T | T[] | undefined;
Which is a bit unclear to me. Values in the 'event bus' can be either arrays or singular values? If so how would I use this with proper type checking? Thanks.
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.