Qwik Lottie also rive not working shows same error "useClientEffectQrl is not a function". Someone please help me with this , I am not able to find the solution in the docs "Qwik version 1.0.0" . here is the code.
import { component$ ,useStore } from '@builder.io/qwik';
import type { DocumentHead } from '@builder.io/qwik-city';
import { QwikLottie } from 'qwik-lottie';
export default component$(() => {
const store = useStore({
options: {
path: 'https://assets7.lottiefiles.com/packages/lf20_M6jA5UNDHa.json',
},
});
return (
<body>
{/* for small screen */}
<div class={"smallScreen"}>
<div>
<QwikLottie options={store.options} />
</div>
<div class={"fixed min-h-20 bg-purple-800 w-full bottom-0 p-2"}>
<div>
</div>
<div class={"flex flex-col"}>
<div class={"flex justify-center w-full"}>
<img
class={"w-14 mb-1"}
src="https://cmjanshikayat.cgstate.gov.in/landing-page-assest/assets/images/chips.jpg" alt="chips logo"/>
</div>
<div class={"select-none text-center font-normal text-white text-xs"}>वेबसाइट प्रबंधन कार्य छत्तीसगढ़ इन्फोटेक प्रमोशन सोसायटी, इलेक्ट्रॉनिक्स एवं सूचना प्रौद्योगिकी विभाग, छत्तीसगढ़ शासन द्वारा किया जा रहा है।</div>
<div class={"select-none text-center font-normal text-white text-xs"}>कॉपीराईट © 2022 <a href="https://chips.gov.in/" class={"font-semibold text-xxs"}>CHiPS</a></div>
</div>
</div>
</div>
</body>
);
});
export const head: DocumentHead = {
title: 'Test',
meta: [
{
name: 'description',
content: 'Test description',
},
],
};
I Want to run simple lottie / rive animation on Qwik js framework
In the stable version of qwik
useClientEffectQrl
anduseClientEffect$
is depricated and instead newuseVisibleTask$
anduseVisibleTaskQrl
introduced. I have created a repo using latest stable version of qwik and lottie web https://github.com/harshmangalam/qwik-lottie-web