Skip to content

db.stream({live: true}) should provide an easy way to access reduce function from a client #8

@maackle

Description

@maackle

Since subsequent messages of a live stream are meant to be folded into the state (the first message), they are relatively useless without the original reduce function used to construct the flumeview. I don't see an easy way to get at that. For instance, if I'm using a 3rd-party lib like ssb-about that doesn't export its reducer, I'd have to copy and paste the reduce function if I wanted to use a live stream of that flumeview.

If there is already an easy way to get at the reducer, let me know. Otherwise how can we make this easy without requiring plugin authors to export their reduce function explicitly? I guess it's not so simple to "send a function over the wire" to the client...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions