| title |
|---|
useQuery |
The useQuery method allows you to use the original useQuery.
- The result is the same as the original function.
- The
functionKeyis[method, path, params]. dataanderrorare fully typed.
| title |
|---|
useQuery |
The useQuery method allows you to use the original useQuery.
functionKey is [method, path, params].data and error are fully typed.| <canvas id="show" width="300" height="300"></canvas> |
| { | |
| // ... | |
| docs: { | |
| remarkPlugins: [ | |
| [ | |
| require('@docusaurus/remark-plugin-npm2yarn'), | |
| { | |
| sync: true, | |
| converters: [ | |
| [ |
git commit --amend -m "New commit message"Эта команда позволяет изменить сообщение последнего коммита на "New commit message".
🧹 Перезапись хеша: Поскольку содержание коммита изменяется (хотя бы сообщение), хеш коммита тоже изменится. Это, в свою очередь, приведёт к изменению хешей всех последующих коммитов, если таковые имеются.
| import { Messages, setupI18n } from '@lingui/core'; | |
| import { I18nProvider } from '@lingui/react'; | |
| import { ReactNode, useState } from 'react'; | |
| export const generateMessagesProvider = async ( | |
| locale: string, | |
| { messages }: { messages: Messages } | |
| ) => { | |
| return function LocaleMessagesProvider({ children }: { children: ReactNode }) { | |
| return ( |
| <?php | |
| /** | |
| * Create ACF options page under custom post type menu | |
| * | |
| * @since 1.0.0 | |
| */ | |
| if ( function_exists( 'acf_add_options_sub_page' ) ){ | |
| acf_add_options_sub_page(array( | |
| 'title' => 'Event Settings', | |
| 'parent' => 'edit.php?post_type=events', |
| <?php | |
| <? | |
| // Hooks only for version 5 only, may be for previous version also works | |
| if (!defined('WPCF7_VERSION') OR intval(WPCF7_VERSION) !== 5) | |
| { | |
| return; | |
| } | |
| add_filter( 'wpcf7_validate_text', 'wpcf7_text_allowed_chars_validation_filter', 11, 2 ); | |
| add_filter( 'wpcf7_validate_text*', 'wpcf7_text_allowed_chars_validation_filter', 11, 2 ); |