An open API service indexing awesome lists of open source software.

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

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
```