{"id":665,"date":"2022-10-31T13:22:32","date_gmt":"2022-10-31T05:22:32","guid":{"rendered":"https:\/\/www.tonghin.com.my\/blog\/?p=665"},"modified":"2022-10-31T13:22:34","modified_gmt":"2022-10-31T05:22:34","slug":"cleaning-before-the-nearly-done-update","status":"publish","type":"post","link":"https:\/\/www.tonghin.com.my\/blog\/2022\/10\/31\/cleaning-before-the-nearly-done-update\/","title":{"rendered":"Cleaning Before The Nearly Done Update"},"content":{"rendered":"\n<p class=\"has-black-color has-white-background-color has-text-color has-background\">At the beginning of this week, the main goals was to fix the bug that caused  Views to render multiple times. And changing the style of the whole application by putting all of the styles into a single style file and using it on every page.<\/p>\n\n\n\n<p class=\"has-black-color has-white-background-color has-text-color has-background\">I followed the previous work to use the correct UseEffects and the render problem got addressed. I next went on to the pagination issue, where the list of items was inconsistent. And page pagination did not function at all. The bug was at the pagination function, so after I altered the function by using UseInterval solution,  the problem is fixed. In addition, I started performing Async tests on the UseInterval function to have a better understanding.<\/p>\n\n\n\n<p class=\"has-black-color has-white-background-color has-text-color has-background\">After that I started to work on the styling because the application. The point of the style wasn&#8217;t the style itself, but rather to make it easier for me to make changes or style a component. The previous style was somewhat random, and each component was styled independently, which made the code more complicated. Therefore, the main purpose here was to clean the code and make the style easy to edit.<\/p>\n\n\n\n<p class=\"has-black-color has-white-background-color has-text-color has-background\">Next, I styled the main page and the primary background, in addition to all other components in the main pages.  The result for me is great, now I can change any component style in only one place for all pages. <\/p>\n\n\n\n<p class=\"has-black-color has-white-background-color has-text-color has-background\">While Mr. Peter was testing the application before to this version&#8217;s upgrade, we discovered a bug again&nbsp;in the keyboard toggle. It took us some time to solve this problem, but after we did, Mr. Peter showed me how to make it a reusable component for our app, which was wonderful and helpful.<\/p>\n\n\n\n<p class=\"has-black-color has-white-background-color has-text-color has-background\">To conclude, the keyboard toggle were functioning properly with no bugs. However, it was not as we expected it to be, so we postponed the upgrade until the following week, when I will fix the issue.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>At the beginning of this week, the main goals was to fix the bug that caused Views to render multiple times. And changing the style of the whole application by putting all of the styles into a single style file and using it on every page. I followed the previous work to use the correct &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.tonghin.com.my\/blog\/2022\/10\/31\/cleaning-before-the-nearly-done-update\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Cleaning Before The Nearly Done Update&#8221;<\/span><\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Cleaning Before The Nearly Done Update | Tong Hin&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.tonghin.com.my\/blog\/2022\/10\/31\/cleaning-before-the-nearly-done-update\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cleaning Before The Nearly Done Update | Tong Hin&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"At the beginning of this week, the main goals was to fix the bug that caused Views to render multiple times. And changing the style of the whole application by putting all of the styles into a single style file and using it on every page. I followed the previous work to use the correct &hellip; Continue reading &quot;Cleaning Before The Nearly Done Update&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.tonghin.com.my\/blog\/2022\/10\/31\/cleaning-before-the-nearly-done-update\/\" \/>\n<meta property=\"og:site_name\" content=\"Tong Hin&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-31T05:22:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-31T05:22:34+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"2 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#organization\",\"name\":\"TONG HIN MACHINERY\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/\",\"sameAs\":[\"https:\/\/www.youtube.com\/channel\/UC60EoxJMNbu8mV0LuEGfrBg\"],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/wp-content\/uploads\/2020\/10\/web_logo_180_180.jpg\",\"width\":180,\"height\":180,\"caption\":\"TONG HIN MACHINERY\"},\"image\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#website\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/\",\"name\":\"Tong Hin&#039;s Blog\",\"description\":\"Sharing About Technology\",\"publisher\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.tonghin.com.my\/blog\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2022\/10\/31\/cleaning-before-the-nearly-done-update\/#webpage\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/2022\/10\/31\/cleaning-before-the-nearly-done-update\/\",\"name\":\"Cleaning Before The Nearly Done Update | Tong Hin&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#website\"},\"datePublished\":\"2022-10-31T05:22:32+00:00\",\"dateModified\":\"2022-10-31T05:22:34+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2022\/10\/31\/cleaning-before-the-nearly-done-update\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.tonghin.com.my\/blog\/2022\/10\/31\/cleaning-before-the-nearly-done-update\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2022\/10\/31\/cleaning-before-the-nearly-done-update\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2022\/10\/31\/cleaning-before-the-nearly-done-update\/\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/2022\/10\/31\/cleaning-before-the-nearly-done-update\/\",\"name\":\"Cleaning Before The Nearly Done Update\"}}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2022\/10\/31\/cleaning-before-the-nearly-done-update\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2022\/10\/31\/cleaning-before-the-nearly-done-update\/#webpage\"},\"author\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#\/schema\/person\/76160a63e513a3f2516d5e93e7f22cb8\"},\"headline\":\"Cleaning Before The Nearly Done Update\",\"datePublished\":\"2022-10-31T05:22:32+00:00\",\"dateModified\":\"2022-10-31T05:22:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2022\/10\/31\/cleaning-before-the-nearly-done-update\/#webpage\"},\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#organization\"},\"articleSection\":\"Experiential\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.tonghin.com.my\/blog\/2022\/10\/31\/cleaning-before-the-nearly-done-update\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#\/schema\/person\/76160a63e513a3f2516d5e93e7f22cb8\",\"name\":\"Fadi Abdulrab\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c69dd593cec65617923ff0c095266184?s=96&d=mm&r=g\",\"caption\":\"Fadi Abdulrab\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/posts\/665"}],"collection":[{"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/comments?post=665"}],"version-history":[{"count":12,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/posts\/665\/revisions"}],"predecessor-version":[{"id":680,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/posts\/665\/revisions\/680"}],"wp:attachment":[{"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/media?parent=665"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/categories?post=665"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/tags?post=665"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}