https://github.com/tylerrick/repro_getcontext_from_comp_inside_each
Reproduce Svelte error "Function called outside component initialization" when getContext from a _component_ (which should be allowed) inside an each loop
https://github.com/tylerrick/repro_getcontext_from_comp_inside_each
Last synced: about 2 months ago
JSON representation
Reproduce Svelte error "Function called outside component initialization" when getContext from a _component_ (which should be allowed) inside an each loop
- Host: GitHub
- URL: https://github.com/tylerrick/repro_getcontext_from_comp_inside_each
- Owner: TylerRick
- Created: 2020-10-01T04:47:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-01T21:14:14.000Z (over 5 years ago)
- Last Synced: 2026-02-15T06:15:06.856Z (4 months ago)
- Language: JavaScript
- Size: 166 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a minimal reproduction of a "Function called outside component initialization" error that I
ran into in a real app, and my various attempts to figure out the cause and resolution of the error.
More information can be found in this question:
To build this app:
1. `npm i`
1. Build its dependency:
```
cd packages/my-new-component/
npx rollup -c -w
```
1. Build the app:
```
npx rollup -c -w
```