(vc *RenderContextImpl, hookInitialVal any)
| 101 | } |
| 102 | |
| 103 | func UseRef(vc *RenderContextImpl, hookInitialVal any) any { |
| 104 | hookVal := vc.getOrderedHook() |
| 105 | if !hookVal.Init { |
| 106 | hookVal.Init = true |
| 107 | hookVal.Val = hookInitialVal |
| 108 | } |
| 109 | return hookVal.Val |
| 110 | } |
| 111 | |
| 112 | func depsEqual(deps1 []any, deps2 []any) bool { |
| 113 | if len(deps1) != len(deps2) { |
no test coverage detected