Urgent.News

One page, thousands of outlets. See who else covered it.

Editions

Tech

Why programmatic inserts don't wrap on iOS multiline TextInput, and the one-line native fix

Ran into this last week on a multiline TextInput and lost a chunk of a day to it. Writing it up in case someone else hits the same thing. The bug I've got a multiline TextInput hooked up with react-native-controlled-mentions and a suggestions dropdown above it. You type a trigger character like @ to pick a suggestion from a dropdown, and the library inserts a styled name into the text box. Short…

A developer encountered an issue with multiline TextInput not wrapping on iOS when using react-native-controlled-mentions to insert styled names into a text box. Short inserts worked fine, but once the text was long enough to push the line past the right edge, the input stopped resizing on iOS. The text was still there, selection worked, and the cursor sat where it should have, but the wrapped line rendered outside the input's clipping area.

The only solution was to set the selection range after the children update, which triggers a layout pass and resolves the clipping issue without need for remounting, focus loss, or keyboard flicker.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Why a two-user Convex chat app read tens of MB a day

I was staring at my Convex dashboard, confused. Convex is the reactive backend I use for a chat app: it stores the data and, the part that matters here, it keeps your queries live , so the UI updates…

  • Convex app's high bandwidth due to reactive queries
  • Queries re-run on every data change, amplifying bandwidth usage
  • Solutions include pagination, optimized .collect(), stable arguments

Why a static Three.js scene still cooks your phone, and the dirty-flag fix

So I have a bunch of small games on my site. Ludo, tic-tac-toe, carrom, rock-paper-scissors. Nothing fancy, the kind of thing you'd think runs on a potato.

  • Static Three.js scenes cause phone heating due to continuous repainting in render loop.
  • Dirty flag system implemented to render scene only when necessary.
  • Ludo board renders frames only when game state changes, reducing GPU workload.

Data Centers Spread Across Japan

Data center construction is accelerating across Japan as artificial intelligence drives demand for computing capacity, creating new business opportunities for domestic companies supplying…

Same Request Sent Twice: How Idempotency Prevents Duplicate Payments

A user opens a payment app, types in an amount, and taps "Pay." The spinner shows up. Then nothing — no success screen, no error, just a frozen loader. So they tap "Pay" again.

  • User retries payment request after initial request fails
  • Idempotency keys prevent duplicate charges by linking retries to original requests
  • Idempotent operations have same effect when repeated, like pressing an elevator button

More from Sunday 16 August →