{"id":1287,"date":"2023-12-18T15:27:20","date_gmt":"2023-12-18T07:27:20","guid":{"rendered":"https:\/\/www.tonghin.com.my\/blog\/?p=1287"},"modified":"2023-12-18T15:27:22","modified_gmt":"2023-12-18T07:27:22","slug":"new-challenge","status":"publish","type":"post","link":"https:\/\/www.tonghin.com.my\/blog\/2023\/12\/18\/new-challenge\/","title":{"rendered":"New Challenge"},"content":{"rendered":"\n<p>Because of the public holiday, this week is relatively short. This week, I finished the customer page and began work on the main page. The customer page made use of each api, and the apis worked well in the customer page. The customer page can now retrieve customer data, update customer information, add new customer information, and even delete customer information. When I presented the page to Mr. Peter, he advised me to include a prompt page that displays the success or failure status of the update when changes have been made. However, because the industrial training period is coming to an end, he just provided me the code for the\u00a0prompt status on the next day. He even gave me some helpful functions. Now I am free from worrying about the useEffect issue because the getStatus will be updated immediately after the change is made.<\/p>\n\n\n\n<p>Aside from that, the backend team had finished a new API. I should use this new api called to create a new page to keep track of all orders. However, I encountered difficulties because the order api contains a large number of elements that must be used. I was concerned that I would not be able to complete the job by the end of the internship because it was less than a month. Furthermore, as December and January have many public holidays, particularly Christmas and New Year&#8217;s Day, I have less time to develop the main page. Nonetheless, I will do my best to use this API and hope that the functions of creating, updating, and deleting orders function properly.<\/p>\n\n\n\n<p>The order API is used not just on the list page, but also on the main page. The order should be created on the main page, and the order list page will display all of the orders created. In the coming week, I will attempt to construct an order and display it on a distinct page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Because of the public holiday, this week is relatively short. This week, I finished the customer page and began work on the main page. The customer page made use of each api, and the apis worked well in the customer page. The customer page can now retrieve customer data, update customer information, add new customer &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.tonghin.com.my\/blog\/2023\/12\/18\/new-challenge\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;New Challenge&#8221;<\/span><\/a><\/p>\n","protected":false},"author":13,"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>New Challenge | 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\/2023\/12\/18\/new-challenge\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"New Challenge | Tong Hin&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"Because of the public holiday, this week is relatively short. This week, I finished the customer page and began work on the main page. The customer page made use of each api, and the apis worked well in the customer page. The customer page can now retrieve customer data, update customer information, add new customer &hellip; Continue reading &quot;New Challenge&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.tonghin.com.my\/blog\/2023\/12\/18\/new-challenge\/\" \/>\n<meta property=\"og:site_name\" content=\"Tong Hin&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-18T07:27:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-18T07:27:22+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\/2023\/12\/18\/new-challenge\/#webpage\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/2023\/12\/18\/new-challenge\/\",\"name\":\"New Challenge | Tong Hin&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#website\"},\"datePublished\":\"2023-12-18T07:27:20+00:00\",\"dateModified\":\"2023-12-18T07:27:22+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2023\/12\/18\/new-challenge\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.tonghin.com.my\/blog\/2023\/12\/18\/new-challenge\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2023\/12\/18\/new-challenge\/#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\/2023\/12\/18\/new-challenge\/\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/2023\/12\/18\/new-challenge\/\",\"name\":\"New Challenge\"}}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2023\/12\/18\/new-challenge\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2023\/12\/18\/new-challenge\/#webpage\"},\"author\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#\/schema\/person\/f7817effc288d9b460c236e6f8a80e05\"},\"headline\":\"New Challenge\",\"datePublished\":\"2023-12-18T07:27:20+00:00\",\"dateModified\":\"2023-12-18T07:27:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2023\/12\/18\/new-challenge\/#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\/2023\/12\/18\/new-challenge\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#\/schema\/person\/f7817effc288d9b460c236e6f8a80e05\",\"name\":\"Chia Soon Tock\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fc0129e896a1c25c18e5c5fabe0016f9?s=96&d=mm&r=g\",\"caption\":\"Chia Soon Tock\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/posts\/1287"}],"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\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/comments?post=1287"}],"version-history":[{"count":2,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/posts\/1287\/revisions"}],"predecessor-version":[{"id":1301,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/posts\/1287\/revisions\/1301"}],"wp:attachment":[{"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/media?parent=1287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/categories?post=1287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/tags?post=1287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}