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

Siema Svelte async data shows error 'Something wrong with your selector 😭' #290

Open
louislugas opened this issue May 1, 2022 · 0 comments

Comments

@louislugas
Copy link

Hi, I'm using Siema with Svelte, when I use it with static data like in here, it works really well.

this is my static data example

let data = [
  {val:1},
  {val:2},
  {val:3},
  {val:4},
  {val:5}
  ]

But when I use the async data like in here, it's not working. It shows the error Something wrong with your selector 😭

my async data

const fetchData = async () => {
		let result = await fetch('https://jsonplaceholder.typicode.com/posts')
		let data = await result.json()
		console.log(data)
		return data
	}
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

No branches or pull requests

1 participant