Skip to content
This repository was archived by the owner on Jun 29, 2021. It is now read-only.
This repository was archived by the owner on Jun 29, 2021. It is now read-only.

Side-loading data into minimongo #423

@gunn

Description

@gunn

There should be a supported way to inject data directly into minimongo instead of by subscription and DDP, but still allow update by subscription later.

A common use case for this is to support SSR - the initial data to hydrate an app can be shipped as a JSON string with the html - library example.

In my app, eliminating the wait for the initial subscription would reduce page load time from ~4s to ~0.8s.

This code - https://github.com/kadirahq/fast-render/blob/master/lib/client/fast_render.js#L19-L90 might do the job, but it's 5 years old, and getting quite deep into meteor's internals.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in-discussionWe are still discussing how to solve or implement it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions