- Notifications
You must be signed in to change notification settings - Fork8
Commit56dba6f
authored
Retaining the modified title on component unmount made optional. (#2)
* Option added to retain the modified title or to rollback to the default title ON the corresponding component unmount event (e.g. route change -> title change for those using this hook, but rollback to the default/original title for those routes not using this hook.)* Using useRef to get the default title.1 parent3f1e3db commit56dba6f
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | | - | |
5 | 7 | | |
6 | 8 | | |
7 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
0 commit comments
Comments
(0)