| 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.| { | |
| // ... | |
| 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 ( |
| # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider | |
| # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | |
| # User-specific stuff | |
| .idea/**/workspace.xml | |
| .idea/**/tasks.xml | |
| .idea/**/usage.statistics.xml | |
| .idea/**/dictionaries | |
| .idea/**/shelf |
| <?php | |
| class Custom_WP_Image_Editor_GD extends WP_Image_Editor_GD { | |
| /** | |
| * @param array $rgb | |
| * | |
| * @return false|resource | |
| */ | |
| public function fill_background( $rgb ) { | |
| $width = $this->size['width']; | |
| $height = $this->size['height']; |
| declare module 'react-load-script' { | |
| import {Component} from 'react' | |
| export interface ILoadScriptProps { | |
| url: string | |
| onCreate?: () => void | |
| onError?: () => void | |
| onLoad?: () => void | |
| } |