Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix passing a store to nested components on server side #1116

Merged
merged 2 commits into from
Jan 18, 2018

Conversation

jamesbirtles
Copy link
Contributor

This fixes issue #1107 where supplying a store in a nested component would error with TypeError: options.store._init is not a function if the parent didn't have a store, or it would use the parent store, ignoring the one passed to the nested component.

@codecov-io
Copy link

codecov-io commented Jan 17, 2018

Codecov Report

Merging #1116 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1116      +/-   ##
==========================================
+ Coverage   91.56%   91.58%   +0.02%     
==========================================
  Files         123      123              
  Lines        4493     4493              
  Branches     1447     1447              
==========================================
+ Hits         4114     4115       +1     
  Misses        162      162              
+ Partials      217      216       -1
Impacted Files Coverage Δ
src/generators/server-side-rendering/index.ts 95.77% <100%> (ø) ⬆️
src/generators/Generator.ts 94.13% <0%> (+0.25%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8057884...b180f8a. Read the comment docs.

@Rich-Harris Rich-Harris merged commit 7bf743c into sveltejs:master Jan 18, 2018
@Rich-Harris
Copy link
Member

perfect, thank you!

@jamesbirtles jamesbirtles deleted the fix/ssr-nested-store branch January 18, 2018 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants