Skip to content

Subscribe to global stores #2235

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

Merged
merged 4 commits into from
Mar 17, 2019
Merged

Subscribe to global stores #2235

merged 4 commits into from
Mar 17, 2019

Conversation

Rich-Harris
Copy link
Member

Per discussion on #2139, this is an alternative to #2155. If a component has {$foo} and foo is undefined, Svelte issues the 'foo is not declared' warning as usual, but still compiles, on the assumption that foo is a global store. If it's not, then it errors at runtime.

@codecov-io
Copy link

codecov-io commented Mar 16, 2019

Codecov Report

Merging #2235 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2235   +/-   ##
=======================================
  Coverage   91.83%   91.83%           
=======================================
  Files           1        1           
  Lines          49       49           
=======================================
  Hits           45       45           
  Misses          4        4

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 cdbd0c3...b57c724. Read the comment docs.

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.

None yet

4 participants