Make a feathers-ssr behavior that switches between sockets/XHR
@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...
- Uses XHR requests on the server. The existing CanZone plugin for handling XHRs will populate the XHR_CACHE.
- 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.
- Allows the client to fall through to using another behavior (in our case the
feathersbehavior) 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from donejs/bitcentive
-
Difficulty 1/5 Under an hour Newbie friendliness 70/100
donejs/bitcentive#317 ·
-
donejs/bitcentive#370 · 1 assignee ·
-
Fix monthly clones Open
Difficulty 4/5 3-5 days Newbie friendliness 30/100
donejs/bitcentive#369 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
donejs/bitcentive#367 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
donejs/bitcentive#362 ·
All issues in donejs/bitcentive
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·