# Знайди баг: React Native > Один фрагмент коду. Знайди баг або доведи, що його немає. Щоденне завдання: 2026-08-19 (UTC) · Mid-Level ```tsx import * as SQLite from 'expo-sqlite' const db = SQLite.openDatabaseSync('blog.db') type Post = { id: number; title: string; author_id: number } export async function loadPostsWithAuthors() { const posts = await db.getAllAsync('SELECT id, title, author_id FROM posts') const enriched = [] for (const post of posts) { const author = await db.getFirstAsync( 'SELECT name FROM users WHERE id = ?', post.author_id ) enriched.push({ ...post, author }) } return enriched } ``` ## Твій вердикт - Вразливість безпеки - Помилка логіки - Стиль коду - Без проблем Одна спроба на день. Відповідь з'явиться одразу після. --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/uk/shchodenne-zavdannia/react-native