# fix\(mobile\): a closed search no longer risks freezing the app · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/5bba602f0d1a7c6d9561c3557526efa4628c0dcb)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 5bba602f0d1a7c6d9561c3557526efa4628c0dcb

Requested commit: 5bba602f0d1a7c6d9561c3557526efa4628c0dcb

Commit: 5bba602f0d1a7c6d9561c3557526efa4628c0dcb

Tree: 8ea925c5e91d56cb75f1fe4d84c20a291fbfd2ae

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
fix(mobile): a closed search no longer risks freezing the app

UIKit's search field leaves a main-queue observer for its text storage
after the field is freed. When React Native's JS thread then measured
text in a storage at the same address, the edit waited for the main
thread while holding React Native's text measurement lock, and a fold
that measured text on the main thread deadlocked. Closing any screen
with a search, or re-placing a search on a fold, left one behind.

Screens t3.33 removes those observers as their storage is freed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

```

## Parents

- [938862484c8f2c780419d0e1f0589720f5bffa3f](https://git.cafe/pingdotgg/t3code/commit/938862484c8f2c780419d0e1f0589720f5bffa3f?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/5bba602f0d1a7c6d9561c3557526efa4628c0dcb?format=markdown)
