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

Add qwik integration #142

Merged
merged 3 commits into from
Jun 16, 2023
Merged

Conversation

FlatMapIO
Copy link
Contributor

2023-06-16.17.38.05.mov

@vercel
Copy link

vercel bot commented Jun 16, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
auto-animate ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 16, 2023 9:49am

@FlatMapIO FlatMapIO mentioned this pull request Jun 16, 2023
@justin-schroeder justin-schroeder changed the base branch from master to release/0.7.0 June 16, 2023 14:59
@justin-schroeder
Copy link
Member

Thanks! We’ll get this into 0.7.0 (beta 7)

@justin-schroeder justin-schroeder merged commit 51712c6 into formkit:release/0.7.0 Jun 16, 2023
@justin-schroeder
Copy link
Member

@FlatMapIO — when build this and link it to a clean Qwik app I get this error:

image

I’m not a qwik dev at all, so not exactly sure what is going on here. Any suggestions for how to resolve this?

@justin-schroeder
Copy link
Member

For reference here is the code I’m trying to run:

import { component$, useStore } from '@builder.io/qwik';
import type { DocumentHead } from '@builder.io/qwik-city';
import { useAutoAnimate } from '@formkit/auto-animate/qwik'

export default component$(() => {
  const items = useStore(['one', 'two', 'three']);
  const [parentRef] = useAutoAnimate()
  return (
    <>
      <button onClick$={() => {
        items.push(`${Math.random()}`)
      }}>Add</button>
      <ul ref={parentRef}>
        {items.map((item) => <li key={item}>{item}</li>)}
      </ul>
    </>
  );
});

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.

2 participants