Skip to content

feat: compatible with svelte by default #36

@Fyzu

Description

@Fyzu

Frp almost completely compatible with svelte, except for a moment with a subscription.

Svelte uses simple store contract.

type Store = { subscribe: (subscription: (value: any) => void) => (() => void), set?: (value: any) => void }

It seems to me that you can make a separate method for subscribing for a Time like .watch(time => {}) for internal usage, and adopt subscribe to .subscribe(value => {}).

This way we will get compatibility with svelte and it will be more understandable for users who want to work with frp as a reactive library.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions