This repository was archived by the owner on Mar 6, 2025. It is now read-only.
Commit 5722149
Allow parent components to reset SearchBar's query
A SearchBar is responsible for its own internal state and rendering once
it's mounted.
This change allows a parent component to force SearchBar to update its
internal state (the value of query) to a new value.1 parent 2b76faf commit 5722149
2 files changed
Lines changed: 15 additions & 4 deletions
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
43 | 54 | | |
44 | 55 | | |
45 | 56 | | |
46 | 57 | | |
47 | 58 | | |
48 | 59 | | |
49 | | - | |
50 | 60 | | |
51 | 61 | | |
| 62 | + | |
| 63 | + | |
52 | 64 | | |
53 | | - | |
54 | | - | |
55 | 65 | | |
56 | 66 | | |
57 | 67 | | |
| |||
0 commit comments