Bu sahifa hali tarjima qilinmagan
Tarjima qoshish uchun havola boyicha o'tib Pull Request oching (havolaga o'tish).
Standart til uchun tarkibni ko'rsatadi.
import { useGate } from "effector-solid";
Function for passing data to Gate.
Methods
useGate(Gate, props)
Formulae
useGate(Gate: Gate<Props>, props: Props): void;
Arguments
Gate
(Gate<Props>
)props
(Props)
Returns
(void
)
Examples
Basic Usage
import { createGate, useGate } from "effector-solid";
import { Route, Routes } from "solid-app-router";
const PageGate = createGate("page");
const Home = (props) => {
useGate(PageGate, props);
return <section>Home</section>;
};
PageGate.state.watch(({ match }) => {
console.log(match);
});
const App = () => (
<Routes>
<Route element={<Home />} />
</Routes>
);
Tarjima jamiyat tomonidan qollanilyapti
Ingliz tilidagi hujjatlar eng dolzarb hisoblanadi, chunki u effector guruhi tomonidan yozilgan va yangilanadi. Hujjatlarni boshqa tillarga tarjima qilish jamiyat tomonidan kuch va istaklar mavjud bo'lganda amalga oshiriladi.
Esda tutingki, tarjima qilingan maqolalar yangilanmasligi mumkin, shuning uchun eng aniq va dolzarb ma'lumot uchun hujjatlarning asl inglizcha versiyasidan foydalanishni tavsiya etamiz.