Skip to content

Commit afb042b

Browse files
author
shatish desai
committed
translate startTransition
1 parent 5f1e04e commit afb042b

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

src/content/reference/react/startTransition.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: startTransition
44

55
<Intro>
66

7-
`startTransition` lets you update the state without blocking the UI.
7+
`startTransition` તમને UI ને અવરોધિત કર્યા વિના સ્ટેટ અપડેટ કરવા દે છે.
88

99
```js
1010
startTransition(scope)
@@ -16,11 +16,11 @@ startTransition(scope)
1616

1717
---
1818

19-
## Reference {/*reference*/}
19+
## સંદર્ભ {/*reference*/}
2020

2121
### `startTransition(scope)` {/*starttransitionscope*/}
2222

23-
The `startTransition` function lets you mark a state update as a Transition.
23+
`startTransition` ફંક્શન તમને સ્ટેટ અપડેટને ટ્રાન્ઝિશન તરીકે ચિહ્નિત કરવા દે છે.
2424

2525
```js {7,9}
2626
import { startTransition } from 'react';
@@ -37,37 +37,37 @@ function TabContainer() {
3737
}
3838
```
3939

40-
[See more examples below.](#usage)
40+
[નીચે વધુ ઉદાહરણો જુઓ.](#usage)
4141

42-
#### Parameters {/*parameters*/}
42+
#### પેરામીટર્સ {/*parameters*/}
4343

44-
* `scope`: A function that updates some state by calling one or more [`set` functions.](/reference/react/useState#setstate) React immediately calls `scope` with no arguments and marks all state updates scheduled synchronously during the `scope` function call as Transitions. They will be [non-blocking](/reference/react/useTransition#marking-a-state-update-as-a-non-blocking-transition) and [will not display unwanted loading indicators.](/reference/react/useTransition#preventing-unwanted-loading-indicators)
44+
* `scope`: એક ફંક્શન જે એક અથવા વધુ [`set` ફંક્શન્સ](/reference/react/useState#setstate) ને કૉલ કરીને કેટલીક સ્ટેટ અપડેટ કરે છે. રિએક્ટ તરત જ `scope` ને કોઈ આર્ગ્યુમેન્ટ્સ વિના કૉલ કરે છે અને `scope` ફંક્શન કૉલ દરમિયાન સિંક્રોનસલી શેડ્યૂલ કરેલા બધા સ્ટેટ અપડેટ્સને ટ્રાન્ઝિશન્સ તરીકે ચિહ્નિત કરે છે. તેઓ [અવરોધક નથી](/reference/react/useTransition#marking-a-state-update-as-a-non-blocking-transition) અને [અવાંછિત લોડિંગ સૂચકો બતાવશે નહીં.](/reference/react/useTransition#preventing-unwanted-loading-indicators)
4545

46-
#### Returns {/*returns*/}
46+
#### પરત આપે છે {/*returns*/}
4747

48-
`startTransition` does not return anything.
48+
`startTransition` કંઈ પણ પરત આપતું નથી.
4949

50-
#### Caveats {/*caveats*/}
50+
#### ચેતવણીઓ {/*caveats*/}
5151

52-
* `startTransition` does not provide a way to track whether a Transition is pending. To show a pending indicator while the Transition is ongoing, you need [`useTransition`](/reference/react/useTransition) instead.
52+
* `startTransition` એ ટ્રાન્ઝિશન પેન્ડિંગ છે કે નહીં તે ટ્રેક કરવાની રીત પૂરી પાડતું નથી. ટ્રાન્ઝિશન ચાલુ હોય ત્યારે પેન્ડિંગ સૂચક બતાવવા માટે, તમને [`useTransition`](/reference/react/useTransition) ની જરૂર પડશે.
5353

54-
* You can wrap an update into a Transition only if you have access to the `set` function of that state. If you want to start a Transition in response to some prop or a custom Hook return value, try [`useDeferredValue`](/reference/react/useDeferredValue) instead.
54+
* તમે કોઈ સ્ટેટના `set` ફંક્શનની ઍક્સેસ ધરાવો છો તો જ તમે અપડેટને ટ્રાન્ઝિશનમાં લપેટી શકો છો. જો તમે કોઈ પ્રોપ અથવા કસ્ટમ હુક રિટર્ન વેલ્યુના પ્રતિસાદમાં ટ્રાન્ઝિશન શરૂ કરવા માંગો છો, તો [`useDeferredValue`](/reference/react/useDeferredValue) અજમાવો.
5555

56-
* The function you pass to `startTransition` must be synchronous. React immediately executes this function, marking all state updates that happen while it executes as Transitions. If you try to perform more state updates later (for example, in a timeout), they won't be marked as Transitions.
56+
* તમે `startTransition` ને પાસ કરેલું ફંક્શન સિંક્રોનસ હોવું જોઈએ. રિએક્ટ તરત જ આ ફંક્શનને એક્ઝિક્યુટ કરે છે, જે દરમિયાન થતા બધા સ્ટેટ અપડેટ્સને ટ્રાન્ઝિશન્સ તરીકે ચિહ્નિત કરે છે. જો તમે પછીથી વધુ સ્ટેટ અપડેટ્સ કરવાનો પ્રયાસ કરો (ઉદાહરણ તરીકે, ટાઈમઆઉટમાં), તેઓ ટ્રાન્ઝિશન્સ તરીકે ચિહ્નિત નહીં થાય.
5757

58-
* A state update marked as a Transition will be interrupted by other state updates. For example, if you update a chart component inside a Transition, but then start typing into an input while the chart is in the middle of a re-render, React will restart the rendering work on the chart component after handling the input state update.
58+
* ટ્રાન્ઝિશન તરીકે ચિહ્નિત સ્ટેટ અપડેટને અન્ય સ્ટેટ અપડેટ્સ દ્વારા વિચ્છેદિત કરી શકાય છે. ઉદાહરણ તરીકે, જો તમે ટ્રાન્ઝિશનમાં ચાર્ટ કમ્પોનેન્ટને અપડેટ કરો, પરંતુ પછી ચાર્ટનું રી-રેન્ડર ચાલુ હોય ત્યારે ઇનપુટમાં ટાઈપ કરવા માંડો, તો રિએક્ટ ઇનપુટ સ્ટેટ અપડેટને સંભાળ્યા પછી ચાર્ટ કમ્પોનેન્ટ પર રેન્ડરિંગ કામને ફરીથી શરૂ કરશે.
5959

60-
* Transition updates can't be used to control text inputs.
60+
* ટ્રાન્ઝિશન અપડેટ્સનો ઉપયોગ ટેક્સ્ટ ઇનપુટ્સને નિયંત્રિત કરવા માટે ન કરી શકાય.
6161

62-
* If there are multiple ongoing Transitions, React currently batches them together. This is a limitation that will likely be removed in a future release.
62+
* જો એકથી વધુ ચાલુ ટ્રાન્ઝિશન્સ હોય, તો રિએક્ટ હાલમાં તેમને એકસાથે બેચ કરે છે. આ એક મર્યાદા છે જેને ભવિષ્યના રિલીઝમાં દૂર કરવામાં આવશે.
6363

6464
---
6565

66-
## Usage {/*usage*/}
66+
## ઉપયોગ {/*usage*/}
6767

68-
### Marking a state update as a non-blocking Transition {/*marking-a-state-update-as-a-non-blocking-transition*/}
68+
### સ્ટેટ અપડેટને અવરોધક ન બનાવતું ટ્રાન્ઝિશન તરીકે ચિહ્નિત કરવું {/*marking-a-state-update-as-a-non-blocking-transition*/}
6969

70-
You can mark a state update as a *Transition* by wrapping it in a `startTransition` call:
70+
તમે સ્ટેટ અપડેટને *ટ્રાન્ઝિશન* તરીકે ચિહ્નિત કરી શકો છો જેને `startTransition` કૉલમાં લપેટીને:
7171

7272
```js {7,9}
7373
import { startTransition } from 'react';
@@ -84,14 +84,14 @@ function TabContainer() {
8484
}
8585
```
8686

87-
Transitions let you keep the user interface updates responsive even on slow devices.
87+
ટ્રાન્ઝિશન્સ ધીમી ડિવાઇસીસ પર પણ તમારા યુઝર ઇન્ટરફેસ અપડેટ્સને પ્રતિસાદી રાખવા દે છે.
8888

89-
With a Transition, your UI stays responsive in the middle of a re-render. For example, if the user clicks a tab but then change their mind and click another tab, they can do that without waiting for the first re-render to finish.
89+
ટ્રાન્ઝિશન સાથે, તમારું UI રી-રેન્ડરની વચ્ચે પ્રતિસાદી રહે છે. ઉદાહરણ તરીકે, જો યુઝર કોઈ ટેબ પર ક્લિક કરે પણ પછી તેમનું મન બદલાઈ જાય અને બીજી ટેબ પર ક્લિક કરે, તો તેઓ પ્રથમ રી-રેન્ડર પૂરું થવાની રાહ જોયા વિના તે કરી શકે છે.
9090

9191
<Note>
9292

93-
`startTransition` is very similar to [`useTransition`](/reference/react/useTransition), except that it does not provide the `isPending` flag to track whether a Transition is ongoing. You can call `startTransition` when `useTransition` is not available. For example, `startTransition` works outside components, such as from a data library.
93+
`startTransition` [`useTransition`](/reference/react/useTransition) સાથે ખૂબ જ સમાન છે, સિવાય કે તે ટ્રાન્ઝિશન ચાલુ છે કે નહીં તે ટ્રેક કરવા માટે `isPending` ધ્વજ પૂરી પાડતું નથી. જ્યારે `useTransition` ઉપલબ્ધ ન હોય ત્યારે તમે `startTransition` ને કૉલ કરી શકો છો. ઉદાહરણ તરીકે, `startTransition` કમ્પોનેન્ટ્સની બહાર કામ કરે છે, જેમ કે ડેટા ફેચિંગ લાઇબ્રેરીઝ અથવા અન્ય એસિન્ક્રોનસ ઓપરેશન્સ માટે.
9494

95-
[Learn about Transitions and see examples on the `useTransition` page.](/reference/react/useTransition)
95+
[ટ્રાન્ઝિશન્સ વિશે શીખો અને `useTransition` પેજ પર ઉદાહરણો જુઓ.](/reference/react/useTransition)
9696

9797
</Note>

0 commit comments

Comments
 (0)