Make a feathers-ssr behavior that switches between sockets/XHR

Open
#97 2 comments 0 reactions 1 assignee View on GitHub

@marshallswain is already working on this.

Since Nov 29, 2016.

Assessment

This issue has not been assessed yet.

Description

XHR requests made by the SSR server get stored in the XHR_CACHE. The socket.io client isn't aware of it, so it makes the same requests again instead of using the cached ones.

Based on the meeting notes in the next comment, we need to make a behavior specifically for SSR that...

  1. Uses XHR requests on the server. The existing CanZone plugin for handling XHRs will populate the XHR_CACHE.
  2. Uses XHR requests on the client before re-attachment of the client app to the SSR-rendered DOM. These XHR requests will check the XHR_CACHE.
  3. Allows the client to fall through to using another behavior (in our case the feathers behavior) on the client AFTER re-attachment.
Dominant language
JavaScript
Stars
7
Forks
3
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from donejs/bitcentive

All issues in donejs/bitcentive

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.