/
mustreets
/
TestApp
Обзор
Документация
Войти
/
mustreets
/
TestApp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
1
CI/CD
Аналитика
Безопасность
master
src/utils/logger/core/diffProps.ts
35 строк
777 B
Slava
Remove Crashlytics integration from the beta lane in Fastfile
07 июн 2026, 20:06
07 июн 2026, 20:06
f21773c
Код
Авторство
О чём код?
export type PropChange = { from: unknown; to: unknown; }; export function getChangedProps( previous: Record<string, unknown>, current: Record<string, unknown>, ): Record<string, PropChange> { const changed: Record<string, PropChange> = {}; for (const key of Object.keys(current)) { if (previous[key] !== current[key]) { changed[key] = { from: previous[key], to: current[key], }; } } return changed; } export function formatRenderLogMessage( componentName: string, renderCount: number, ): string { return `[RENDER] ${componentName} | Номер рендера: ${renderCount}`; } export function formatMountMessage( componentName: string, ): string { return `[MOUNT] ${componentName} смонтирован`; }