{"id":500134,"date":"2026-10-24T21:51:49","date_gmt":"2026-10-24T18:51:49","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=500134"},"modified":"2026-10-24T21:51:49","modified_gmt":"2026-10-24T18:51:49","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=500134","title":{"rendered":"vue-why-render 0.8: \u0433\u0440\u0430\u0444 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438, WASM-\u044f\u0434\u0440\u043e \u0438 VS Code \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041c\u0435\u0441\u044f\u0446 \u043d\u0430\u0437\u0430\u0434 \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b <a href=\"https:\/\/habr.com\/ru\/articles\/1085472\/\" rel=\"noopener nofollow\">\u0441\u0442\u0430\u0442\u044c\u044e<\/a> \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u043b \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a \u0440\u0435\u043d\u0434\u0435\u0440\u043e\u0432 \u0434\u043b\u044f Vue \u2014 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0442\u043e\u0447\u043d\u0443\u044e \u043f\u0440\u0438\u0447\u0438\u043d\u0443 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u043a\u0438. \u0420\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b \u043f\u0440\u043e <code>renderTriggered<\/code>, \u043f\u0440\u043e \u043b\u043e\u0432\u0443\u0448\u043a\u0438 \u0441 <code>process.env.NODE_ENV<\/code>, \u043a\u0438\u0440\u0438\u043b\u043b\u0438\u0446\u0435\u0439 \u0432 \u0431\u0430\u0439\u0442\u043e\u0432\u044b\u0445 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u044f\u0445 \u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435\u043c \u0447\u0443\u0436\u0438\u0445 computed.<\/p>\n<p>\u0421 \u0442\u0435\u0445 \u043f\u043e\u0440 \u0432\u044b\u0448\u043b\u0430 \u0432\u0435\u0440\u0441\u0438\u044f 0.8 \u2014 \u0441 \u0442\u0440\u0435\u043c\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u0444\u0438\u0447\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u043d\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043b \u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a \u0431\u044b\u0441\u0442\u0440\u043e. \u0420\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u0447\u0442\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u0438 \u0437\u0430\u0447\u0435\u043c.<\/p>\n<h3>\u0427\u0442\u043e \u0431\u044b\u043b\u043e<\/h3>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0435 \u0447\u0438\u0442\u0430\u043b\u0438 \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e \u2014 \u0432\u043a\u0440\u0430\u0442\u0446\u0435. <code>vue-why-render<\/code> \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043a Vue 3 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e \u0434\u0432\u0443\u043c\u044f \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438:<\/p>\n<pre><code>import { scan } from 'vue-why-render'scan(app, { panel: true })<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper\"><\/span><\/a><\/div><\/pre>\n<p>\u0418 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u0430\u043d\u043d\u043e\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435: \u0438\u043c\u044f, \u0441\u0447\u0451\u0442\u0447\u0438\u043a \u0440\u0435\u043d\u0434\u0435\u0440\u043e\u0432, \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438 \u043f\u0440\u0438\u0447\u0438\u043d\u0443. \u041d\u0435 <code>target: Proxy<\/code>, \u0430 <code>prop badge: {text} \u2192 {text} \u2014 new reference, same value<\/code>. \u0414\u043b\u044f Pinia \u2014 <code>store cart.items: Array(1) \u2192 Array(0) \u00b7 action clear()<\/code>. \u0414\u043b\u044f \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u2014 <a href=\"http:\/\/route.params.id\" rel=\"noopener nofollow\"><code>route.params.id<\/code><\/a><code>: \"1\" \u2192 \"2\"<\/code>.<\/p>\n<p>\u041f\u043b\u044e\u0441 \u043f\u0430\u043d\u0435\u043b\u044c \u0441 \u043f\u044f\u0442\u044c\u044e \u0432\u043a\u043b\u0430\u0434\u043a\u0430\u043c\u0438, \u0431\u044e\u0434\u0436\u0435\u0442\u044b \u0440\u0435\u043d\u0434\u0435\u0440\u043e\u0432, \u0442\u0435\u0441\u0442\u044b (<code>expectRenders(Card).toBe(0)<\/code>), \u043e\u0442\u0447\u0451\u0442\u044b \u0432 JSON\/Markdown. \u041d\u043e\u043b\u044c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439, MIT.<\/p>\n<h3>\u0427\u0442\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u0432 0.8<\/h3>\n<h4>1. \u0413\u0440\u0430\u0444 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 (Deps)<\/h4>\n<p>\u0420\u0430\u043d\u044c\u0448\u0435 vue-why-render \u043e\u0442\u0432\u0435\u0447\u0430\u043b \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441 \u00ab\u043f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u043e\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u0430\u043b\u0441\u044f?\u00bb. \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u043d \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441 \u00ab\u043a\u0442\u043e \u043e\u0442 \u0447\u0435\u0433\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u0442?\u00bb.<\/p>\n<p>\u041d\u043e\u0432\u0430\u044f \u0432\u043a\u043b\u0430\u0434\u043a\u0430 Deps \u0441\u0442\u0440\u043e\u0438\u0442 \u0436\u0438\u0432\u0443\u044e \u043a\u0430\u0440\u0442\u0443 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439: \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u2194 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a. \u0417\u0434\u0435\u0441\u044c \u044f \u043a\u0430\u043a \u0440\u0430\u0437 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b <code>renderTracked<\/code> \u2014 \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u043b, \u043f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435 \u0441\u0442\u0430\u043b \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c (\u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u043e\u0432, \u0437\u0430\u043c\u0435\u0434\u043b\u044f\u0435\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435). \u0420\u0435\u0448\u0435\u043d\u0438\u0435: \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043b\u0435\u043d\u0438\u0432\u043e, \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0439 \u0432\u043a\u043b\u0430\u0434\u043a\u0438 Deps, \u0438 \u0434\u0435\u0434\u0443\u043f\u043b\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u043b\u0435\u0442\u0443.<\/p>\n<p>\u0414\u0432\u0430 \u0440\u0435\u0436\u0438\u043c\u0430:<\/p>\n<ul>\n<li>\n<p><strong>Components<\/strong> \u2192 \u043a\u0430\u043a\u0438\u0435 ref, prop, store \u0438 computed \u0447\u0438\u0442\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442?<\/p>\n<\/li>\n<li>\n<p><strong>Sources<\/strong> \u2192 \u043a\u0430\u043a\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0437\u0430\u0432\u0438\u0441\u044f\u0442 \u043e\u0442 \u044d\u0442\u043e\u0433\u043e ref?<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0440\u0435\u0431\u0440\u0435 \u2014 \u0441\u0447\u0451\u0442\u0447\u0438\u043a \u0447\u0442\u0435\u043d\u0438\u0439 \u0438 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u043e\u0432. \u0415\u0441\u043b\u0438 <code>UserAvatar<\/code> \u0447\u0438\u0442\u0430\u0435\u0442 <a href=\"http:\/\/user.name\" rel=\"noopener nofollow\"><code>user.name<\/code><\/a> 47 \u0440\u0430\u0437, \u043d\u043e \u044d\u0442\u043e \u0432\u044b\u0437\u0432\u0430\u043b\u043e 2 \u0440\u0435\u043d\u0434\u0435\u0440\u0430 \u2014 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0447\u0442\u0435\u043d\u0438\u044f \u0431\u0435\u0437\u0432\u0440\u0435\u0434\u043d\u044b. \u0415\u0441\u043b\u0438 <code>CartBadge<\/code> \u0434\u0451\u0440\u0433\u0430\u0435\u0442\u0441\u044f \u043e\u0442 <code>cart.items<\/code> \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 keystroke \u2014 \u0432\u043e\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430.<\/p>\n<p>\u042d\u0442\u043e \u0440\u0435\u043d\u0442\u0433\u0435\u043d \u0434\u043b\u044f \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 Vue.<\/p>\n<h4>2. Rust\/WASM \u044f\u0434\u0440\u043e<\/h4>\n<p>\u0412 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u043d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c JS. \u0414\u043b\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u2014 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e. \u041d\u043e \u043a\u043e\u0433\u0434\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0441\u043e\u0442\u043d\u0438 \u0438\u043b\u0438 \u0442\u044b\u0441\u044f\u0447\u0438, \u0442\u0440\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442 \u0437\u0430\u043c\u0435\u0442\u043d\u043e \u0442\u043e\u0440\u043c\u043e\u0437\u0438\u0442\u044c:<\/p>\n<ul>\n<li>\n<p>\u041f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u0434\u0435\u0440\u0435\u0432\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432<\/p>\n<\/li>\n<li>\n<p>\u0414\u0435\u0434\u0443\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u043f\u0440\u0438\u0447\u0438\u043d \u0440\u0435\u043d\u0434\u0435\u0440\u0430<\/p>\n<\/li>\n<li>\n<p>\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 (\u0434\u0438\u0444\u0444) \u0434\u0432\u0443\u0445 \u043e\u0442\u0447\u0451\u0442\u043e\u0432<\/p>\n<\/li>\n<\/ul>\n<p>\u042f \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043b \u0438\u0445 \u043d\u0430 Rust \u0438 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043b \u0432 WebAssembly.<\/p>\n<p><strong>\u041a\u0430\u043a \u044d\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u043e:<\/strong><\/p>\n<p>WASM-\u043c\u043e\u0434\u0443\u043b\u044c \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u043b\u0435\u043d\u0438\u0432\u043e, \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u0447\u0430\u043d\u043a\u043e\u043c. \u0411\u0430\u043d\u0434\u043b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0435 \u0440\u0430\u0441\u0442\u0451\u0442 \u2014 \u043f\u043e\u043a\u0430 vue-why-render \u043d\u0435 \u043d\u0443\u0436\u0435\u043d, \u043d\u0438\u0447\u0435\u0433\u043e \u043b\u0438\u0448\u043d\u0435\u0433\u043e \u043d\u0435 \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f. \u0415\u0441\u043b\u0438 WASM \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d (SSR, jsdom, \u0441\u0442\u0440\u043e\u0433\u0438\u0439 CSP) \u2014 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f JS-\u0444\u043e\u043b\u0431\u044d\u043a. \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0443\u0436\u043d\u043e.<\/p>\n<pre><code>scan(app, { panel: true })\/\/ \u0412\u043d\u0443\u0442\u0440\u0438:\/\/ 1. \u041f\u0440\u043e\u0431\u0443\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c .wasm \u0447\u0430\u043d\u043a\/\/ 2. \u0415\u0441\u043b\u0438 ok \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c Rust-\u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e\/\/ 3. \u0415\u0441\u043b\u0438 \u043d\u0435\u0442 \u2014 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043d\u0430 JS\/\/ \u041f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044c \u043d\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u0435\u0442 \u0440\u0430\u0437\u043d\u0438\u0446\u044b<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0414\u043b\u044f \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0432 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u0430. \u0414\u043b\u044f \u043a\u0440\u0443\u043f\u043d\u043e\u0433\u043e \u2014 \u0437\u0430\u043c\u0435\u0442\u043d\u0430.<\/p>\n<h4>3. VS Code \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435<\/h4>\n<p>\u0411\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u044b\u0435 DevTools \u2014 \u044d\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u043e, \u043d\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043c\u0435\u0436\u0434\u0443 Chrome \u0438 VS Code \u043d\u0430\u0434\u043e\u0435\u043b\u043e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0441\u0434\u0435\u043b\u0430\u043b WebSocket-\u043c\u043e\u0441\u0442: \u0441\u043a\u0430\u043d\u0435\u0440 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u0441\u0442\u0440\u0438\u043c\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u044f\u043c\u043e \u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440.<\/p>\n<p>\u0427\u0442\u043e \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 VS Code:<\/p>\n<ul>\n<li>\n<p><strong>\u0414\u0435\u0440\u0435\u0432\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432<\/strong> \u0432 \u0441\u0430\u0439\u0434\u0431\u0430\u0440\u0435 \u2014 \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u043f\u043e \u0440\u0435\u043d\u0434\u0435\u0440\u0430\u043c, \u0438\u043a\u043e\u043d\u043a\u0438 \ud83d\udd25 \u0434\u043b\u044f \u0433\u043e\u0440\u044f\u0447\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432<\/p>\n<\/li>\n<li>\n<p><strong>\u0414\u0435\u0440\u0435\u0432\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439<\/strong> \u2014 \u0442\u043e\u0442 \u0436\u0435 \u0433\u0440\u0430\u0444 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438<\/p>\n<\/li>\n<li>\n<p><strong>CodeLens<\/strong> \u043d\u0430 <code>.vue<\/code> \u0444\u0430\u0439\u043b\u0430\u0445 \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0435\u043d\u0434\u0435\u0440\u043e\u0432 \u0438 \u0441\u0440\u0435\u0434\u043d\u044f\u044f \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u044f\u043c\u043e \u043d\u0430\u0434 <code>&lt;script setup&gt;<\/code><\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u0442\u0430\u0442\u0443\u0441-\u0431\u0430\u0440<\/strong> \u2014 \u0436\u0438\u0432\u043e\u0439 \u0441\u0447\u0451\u0442\u0447\u0438\u043a \u0440\u0435\u043d\u0434\u0435\u0440\u043e\u0432<\/p>\n<\/li>\n<li>\n<p><strong>\u041a\u043e\u043c\u0430\u043d\u0434\u044b<\/strong> \u2014 pause, resume, reset \u0438\u0437 \u043f\u0430\u043b\u0438\u0442\u0440\u044b<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u043c \u0438 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u043e\u043c. \u0414\u0430\u043d\u043d\u044b\u0435 \u0442\u0430\u043c, \u0433\u0434\u0435 \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u043a\u043e\u0434.<\/p>\n<h3>\u0427\u0442\u043e \u0435\u0449\u0451 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u043e\u0441\u044c<\/h3>\n<p><strong>Vue DevTools \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f<\/strong> \u2014 \u043f\u043e\u043c\u0438\u043c\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u043f\u0430\u043d\u0435\u043b\u0438, vue-why-render \u0442\u0435\u043f\u0435\u0440\u044c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 Vue DevTools. \u0412\u0442\u043e\u0440\u043e\u0439 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440 \u0441 \u0434\u0435\u0440\u0435\u0432\u043e\u043c \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432 (\u0446\u0432\u0435\u0442\u043d\u044b\u0435 \u0442\u0435\u0433\u0438: ref, prop, store, computed) \u0438 \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u043b\u043e\u0439 \u043d\u0430 \u0442\u0430\u0439\u043c\u043b\u0430\u0439\u043d\u0435, \u043b\u043e\u0433\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0440\u0438\u0433\u0433\u0435\u0440 \u043a\u0430\u043a \u0441\u043e\u0431\u044b\u0442\u0438\u0435.<\/p>\n<p><strong>Nuxt \u043c\u043e\u0434\u0443\u043b\u044c<\/strong> \u2014 \u043e\u0434\u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0430 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435:<\/p>\n<pre><code>export default defineNuxtConfig({  modules: ['vue-why-render\/nuxt']})<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u041c\u043e\u0434\u0443\u043b\u044c \u0443\u0436\u0435 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 <a href=\"http:\/\/nuxt.com\/modules\" rel=\"noopener nofollow\">nuxt.com\/modules<\/a>.<\/p>\n<h3>\u0418\u0442\u043e\u0433\u043e<\/h3>\n<p>\u0417\u0430 \u043c\u0435\u0441\u044f\u0446 \u043f\u0430\u043a\u0435\u0442 \u043d\u0430\u0431\u0440\u0430\u043b 668 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u043a \u043d\u0430 npm, \u043f\u043e\u043f\u0430\u043b \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 Nuxt, \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0442\u0440\u0438 \u0444\u0438\u0447\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u0447\u0435\u0441\u0442\u043d\u043e \u043d\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043b \u0434\u0435\u043b\u0430\u0442\u044c \u0432 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0435 \u043f\u043e\u043b\u0433\u043e\u0434\u0430.<\/p>\n<ul>\n<li>\n<p><code>npm i vue-why-render<\/code><\/p>\n<\/li>\n<li>\n<p>\u0414\u043b\u044f Nuxt: <code>modules: ['vue-why-render\/nuxt']<\/code><\/p>\n<\/li>\n<li>\n<p>\u041d\u043e\u043b\u044c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439. MIT. Vue 3.3+.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/dadashi44.github.io\/vue-why-render\/\" rel=\"noopener nofollow\">\u0416\u0438\u0432\u043e\u0435 \u0434\u0435\u043c\u043e<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/dadashi44\/vue-why-render\" rel=\"noopener nofollow\">GitHub<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/articles\/1085472\/\" rel=\"noopener nofollow\">\u041f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043d\u0430 \u0425\u0430\u0431\u0440\u0435<\/a><\/p>\n<\/li>\n<\/ul>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0430\u0448\u043b\u0438 \u0431\u0430\u0433 \u0438\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u0444\u0438\u0447\u0443 \u2014 <a href=\"https:\/\/github.com\/dadashi44\/vue-why-render\/issues\" rel=\"noopener nofollow\">issues \u043e\u0442\u043a\u0440\u044b\u0442\u044b<\/a>.<\/p>\n<hr\/>\n<p><strong>\u0425\u0430\u0431\u044b:<\/strong> JavaScript, Vue.js, Rust, WebAssembly, \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u043e\u0432 <strong>\u0421\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c:<\/strong> \u0421\u0440\u0435\u0434\u043d\u044f\u044f<\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1098942\/\">https:\/\/habr.com\/ru\/articles\/1098942\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041c\u0435\u0441\u044f\u0446 \u043d\u0430\u0437\u0430\u0434 \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u044e \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u043b \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a \u0440\u0435\u043d\u0434\u0435\u0440\u043e\u0432 \u0434\u043b\u044f Vue \u2014 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0442\u043e\u0447\u043d\u0443\u044e \u043f\u0440\u0438\u0447\u0438\u043d\u0443 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u043a\u0438. \u0420\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b \u043f\u0440\u043e renderTriggered, \u043f\u0440\u043e \u043b\u043e\u0432\u0443\u0448\u043a\u0438 \u0441 process.env.NODE_ENV, \u043a\u0438\u0440\u0438\u043b\u043b\u0438\u0446\u0435\u0439 \u0432 \u0431\u0430\u0439\u0442\u043e\u0432\u044b\u0445 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u044f\u0445 \u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435\u043c \u0447\u0443\u0436\u0438\u0445 computed.\u0421 \u0442\u0435\u0445 \u043f\u043e\u0440 \u0432\u044b\u0448\u043b\u0430 \u0432\u0435\u0440\u0441\u0438\u044f 0.8 \u2014 \u0441 \u0442\u0440\u0435\u043c\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u0444\u0438\u0447\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u043d\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043b \u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a \u0431\u044b\u0441\u0442\u0440\u043e. \u0420\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u0447\u0442\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u0438 \u0437\u0430\u0447\u0435\u043c.\u0427\u0442\u043e \u0431\u044b\u043b\u043e\u0415\u0441\u043b\u0438 \u043d\u0435 \u0447\u0438\u0442\u0430\u043b\u0438 \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e \u2014 \u0432\u043a\u0440\u0430\u0442\u0446\u0435. vue-why-render \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043a Vue 3 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e \u0434\u0432\u0443\u043c\u044f \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438:import { scan } from &#8216;vue-why-render&#8217;scan(app, { panel: true })\u0418 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u0430\u043d\u043d\u043e\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435: \u0438\u043c\u044f, \u0441\u0447\u0451\u0442\u0447\u0438\u043a \u0440\u0435\u043d\u0434\u0435\u0440\u043e\u0432, \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438 \u043f\u0440\u0438\u0447\u0438\u043d\u0443. \u041d\u0435 target: Proxy, \u0430 prop badge: {text} \u2192 {text} \u2014 new reference, same value. \u0414\u043b\u044f Pinia \u2014 store cart.items: Array(1) \u2192 Array(0) \u00b7 action clear(). \u0414\u043b\u044f \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u2014 route.params.id: &#171;1&#187; \u2192 &#171;2&#187;.\u041f\u043b\u044e\u0441 \u043f\u0430\u043d\u0435\u043b\u044c \u0441 \u043f\u044f\u0442\u044c\u044e \u0432\u043a\u043b\u0430\u0434\u043a\u0430\u043c\u0438, \u0431\u044e\u0434\u0436\u0435\u0442\u044b \u0440\u0435\u043d\u0434\u0435\u0440\u043e\u0432, \u0442\u0435\u0441\u0442\u044b (expectRenders(Card).toBe(0)), \u043e\u0442\u0447\u0451\u0442\u044b \u0432 JSON\/Markdown. \u041d\u043e\u043b\u044c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439, MIT.\u0427\u0442\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u0432 0.81. \u0413\u0440\u0430\u0444 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 (Deps)\u0420\u0430\u043d\u044c\u0448\u0435 vue-why-render \u043e\u0442\u0432\u0435\u0447\u0430\u043b \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441 \u00ab\u043f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u043e\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u0430\u043b\u0441\u044f?\u00bb. \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u043d \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441 \u00ab\u043a\u0442\u043e \u043e\u0442 \u0447\u0435\u0433\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u0442?\u00bb.\u041d\u043e\u0432\u0430\u044f \u0432\u043a\u043b\u0430\u0434\u043a\u0430 Deps \u0441\u0442\u0440\u043e\u0438\u0442 \u0436\u0438\u0432\u0443\u044e \u043a\u0430\u0440\u0442\u0443 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439: \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u2194 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a. \u0417\u0434\u0435\u0441\u044c \u044f \u043a\u0430\u043a \u0440\u0430\u0437 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b renderTracked \u2014 \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u043b, \u043f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435 \u0441\u0442\u0430\u043b \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c (\u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u043e\u0432, \u0437\u0430\u043c\u0435\u0434\u043b\u044f\u0435\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435). \u0420\u0435\u0448\u0435\u043d\u0438\u0435: \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043b\u0435\u043d\u0438\u0432\u043e, \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0439 \u0432\u043a\u043b\u0430\u0434\u043a\u0438 Deps, \u0438 \u0434\u0435\u0434\u0443\u043f\u043b\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u043b\u0435\u0442\u0443.\u0414\u0432\u0430 \u0440\u0435\u0436\u0438\u043c\u0430:Components \u2192 \u043a\u0430\u043a\u0438\u0435 ref, prop, store \u0438 computed \u0447\u0438\u0442\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442?Sources \u2192 \u043a\u0430\u043a\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0437\u0430\u0432\u0438\u0441\u044f\u0442 \u043e\u0442 \u044d\u0442\u043e\u0433\u043e ref?\u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0440\u0435\u0431\u0440\u0435 \u2014 \u0441\u0447\u0451\u0442\u0447\u0438\u043a \u0447\u0442\u0435\u043d\u0438\u0439 \u0438 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u043e\u0432. \u0415\u0441\u043b\u0438 UserAvatar \u0447\u0438\u0442\u0430\u0435\u0442 user.name 47 \u0440\u0430\u0437, \u043d\u043e \u044d\u0442\u043e \u0432\u044b\u0437\u0432\u0430\u043b\u043e 2 \u0440\u0435\u043d\u0434\u0435\u0440\u0430 \u2014 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0447\u0442\u0435\u043d\u0438\u044f \u0431\u0435\u0437\u0432\u0440\u0435\u0434\u043d\u044b. \u0415\u0441\u043b\u0438 CartBadge \u0434\u0451\u0440\u0433\u0430\u0435\u0442\u0441\u044f \u043e\u0442 cart.items \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 keystroke \u2014 \u0432\u043e\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430.\u042d\u0442\u043e \u0440\u0435\u043d\u0442\u0433\u0435\u043d \u0434\u043b\u044f \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 Vue.2. Rust\/WASM \u044f\u0434\u0440\u043e\u0412 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u043d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c JS. \u0414\u043b\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u2014 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e. \u041d\u043e \u043a\u043e\u0433\u0434\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0441\u043e\u0442\u043d\u0438 \u0438\u043b\u0438 \u0442\u044b\u0441\u044f\u0447\u0438, \u0442\u0440\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442 \u0437\u0430\u043c\u0435\u0442\u043d\u043e \u0442\u043e\u0440\u043c\u043e\u0437\u0438\u0442\u044c:\u041f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u0434\u0435\u0440\u0435\u0432\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432\u0414\u0435\u0434\u0443\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u043f\u0440\u0438\u0447\u0438\u043d \u0440\u0435\u043d\u0434\u0435\u0440\u0430\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 (\u0434\u0438\u0444\u0444) \u0434\u0432\u0443\u0445 \u043e\u0442\u0447\u0451\u0442\u043e\u0432\u042f \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043b \u0438\u0445 \u043d\u0430 Rust \u0438 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043b \u0432 WebAssembly.\u041a\u0430\u043a \u044d\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u043e:WASM-\u043c\u043e\u0434\u0443\u043b\u044c \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u043b\u0435\u043d\u0438\u0432\u043e, \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u0447\u0430\u043d\u043a\u043e\u043c. \u0411\u0430\u043d\u0434\u043b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0435 \u0440\u0430\u0441\u0442\u0451\u0442 \u2014 \u043f\u043e\u043a\u0430 vue-why-render \u043d\u0435 \u043d\u0443\u0436\u0435\u043d, \u043d\u0438\u0447\u0435\u0433\u043e \u043b\u0438\u0448\u043d\u0435\u0433\u043e \u043d\u0435 \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f. \u0415\u0441\u043b\u0438 WASM \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d (SSR, jsdom, \u0441\u0442\u0440\u043e\u0433\u0438\u0439 CSP) \u2014 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f JS-\u0444\u043e\u043b\u0431\u044d\u043a. \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0443\u0436\u043d\u043e.scan(app, { panel: true })\/\/ \u0412\u043d\u0443\u0442\u0440\u0438:\/\/ 1. \u041f\u0440\u043e\u0431\u0443\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c .wasm \u0447\u0430\u043d\u043a\/\/ 2. \u0415\u0441\u043b\u0438 ok \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c Rust-\u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e\/\/ 3. \u0415\u0441\u043b\u0438 \u043d\u0435\u0442 \u2014 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043d\u0430 JS\/\/ \u041f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044c \u043d\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u0435\u0442 \u0440\u0430\u0437\u043d\u0438\u0446\u044b\u0414\u043b\u044f \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0432 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u0430. \u0414\u043b\u044f \u043a\u0440\u0443\u043f\u043d\u043e\u0433\u043e \u2014 \u0437\u0430\u043c\u0435\u0442\u043d\u0430.3. VS Code \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u0411\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u044b\u0435 DevTools \u2014 \u044d\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u043e, \u043d\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043c\u0435\u0436\u0434\u0443 Chrome \u0438 VS Code \u043d\u0430\u0434\u043e\u0435\u043b\u043e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0441\u0434\u0435\u043b\u0430\u043b WebSocket-\u043c\u043e\u0441\u0442: \u0441\u043a\u0430\u043d\u0435\u0440 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u0441\u0442\u0440\u0438\u043c\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u044f\u043c\u043e \u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440.\u0427\u0442\u043e \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 VS Code:\u0414\u0435\u0440\u0435\u0432\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0432 \u0441\u0430\u0439\u0434\u0431\u0430\u0440\u0435 \u2014 \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u043f\u043e \u0440\u0435\u043d\u0434\u0435\u0440\u0430\u043c, \u0438\u043a\u043e\u043d\u043a\u0438 \ud83d\udd25 \u0434\u043b\u044f \u0433\u043e\u0440\u044f\u0447\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432\u0414\u0435\u0440\u0435\u0432\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u2014 \u0442\u043e\u0442 \u0436\u0435 \u0433\u0440\u0430\u0444 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438CodeLens \u043d\u0430 .vue \u0444\u0430\u0439\u043b\u0430\u0445 \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0435\u043d\u0434\u0435\u0440\u043e\u0432 \u0438 \u0441\u0440\u0435\u0434\u043d\u044f\u044f \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u044f\u043c\u043e \u043d\u0430\u0434 &lt;script setup&gt;\u0421\u0442\u0430\u0442\u0443\u0441-\u0431\u0430\u0440 \u2014 \u0436\u0438\u0432\u043e\u0439 \u0441\u0447\u0451\u0442\u0447\u0438\u043a \u0440\u0435\u043d\u0434\u0435\u0440\u043e\u0432\u041a\u043e\u043c\u0430\u043d\u0434\u044b \u2014 pause, resume, reset \u0438\u0437 \u043f\u0430\u043b\u0438\u0442\u0440\u044b\u041d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u043c \u0438 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u043e\u043c. \u0414\u0430\u043d\u043d\u044b\u0435 \u0442\u0430\u043c, \u0433\u0434\u0435 \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u043a\u043e\u0434.\u0427\u0442\u043e \u0435\u0449\u0451 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u043e\u0441\u044cVue DevTools \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f \u2014 \u043f\u043e\u043c\u0438\u043c\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u043f\u0430\u043d\u0435\u043b\u0438, vue-why-render \u0442\u0435\u043f\u0435\u0440\u044c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 Vue DevTools. \u0412\u0442\u043e\u0440\u043e\u0439 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440 \u0441 \u0434\u0435\u0440\u0435\u0432\u043e\u043c \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432 (\u0446\u0432\u0435\u0442\u043d\u044b\u0435 \u0442\u0435\u0433\u0438: ref, prop, store, computed) \u0438 \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u043b\u043e\u0439 \u043d\u0430 \u0442\u0430\u0439\u043c\u043b\u0430\u0439\u043d\u0435, \u043b\u043e\u0433\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0440\u0438\u0433\u0433\u0435\u0440 \u043a\u0430\u043a \u0441\u043e\u0431\u044b\u0442\u0438\u0435.Nuxt \u043c\u043e\u0434\u0443\u043b\u044c \u2014 \u043e\u0434\u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0430 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435:export default defineNuxtConfig({  modules: [&#8216;vue-why-render\/nuxt&#8217;]})\u041c\u043e\u0434\u0443\u043b\u044c \u0443\u0436\u0435 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 nuxt.com\/modules.\u0418\u0442\u043e\u0433\u043e\u0417\u0430 \u043c\u0435\u0441\u044f\u0446 \u043f\u0430\u043a\u0435\u0442 \u043d\u0430\u0431\u0440\u0430\u043b 668 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u043a \u043d\u0430 npm, \u043f\u043e\u043f\u0430\u043b \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 Nuxt, \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0442\u0440\u0438 \u0444\u0438\u0447\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u0447\u0435\u0441\u0442\u043d\u043e \u043d\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043b \u0434\u0435\u043b\u0430\u0442\u044c \u0432 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0435 \u043f\u043e\u043b\u0433\u043e\u0434\u0430.npm i vue-why-render\u0414\u043b\u044f Nuxt: modules: [&#8216;vue-why-render\/nuxt&#8217;]\u041d\u043e\u043b\u044c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439. MIT. Vue 3.3+.\u0416\u0438\u0432\u043e\u0435 \u0434\u0435\u043c\u043eGitHub\u041f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043d\u0430 \u0425\u0430\u0431\u0440\u0435\u0415\u0441\u043b\u0438 \u043d\u0430\u0448\u043b\u0438 \u0431\u0430\u0433 \u0438\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u0444\u0438\u0447\u0443 \u2014 issues \u043e\u0442\u043a\u0440\u044b\u0442\u044b.\u0425\u0430\u0431\u044b: JavaScript, Vue.js, Rust, WebAssembly, \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u043e\u0432 \u0421\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c: \u0421\u0440\u0435\u0434\u043d\u044f\u044f\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1098942\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-500134","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/500134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=500134"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/500134\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=500134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=500134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=500134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}