(updated: Resource)
| 58 | // When a component mounts, it needs to let the store know that it will subscribe to changes to that resource. |
| 59 | useEffect(() => { |
| 60 | function handleNotify(updated: Resource) { |
| 61 | // When a change happens, set the new Resource. |
| 62 | setResource(updated); |
| 63 | } |
| 64 | subject && store.subscribe(subject, handleNotify); |
| 65 | |
| 66 | return () => { |
nothing calls this directly
no test coverage detected