博文

目前显示的是 十月 22, 2025的博文

Scripting News: Wednesday, October 22, 2025

图片
Wednesday, October 22, 2025 Still looking for more great WordPress news sites. # Question came up on TPM as to whether the blogosphere might reboot in Substack. The author concluded it can't, and I agree. Here's why . "One thing the blogosphere had that Substack can't have is all parts were replaceable. You could use any blogging tool, and any feed reader and still be part of the world. Substack is a single company that has raised VC money. Vastly different incentives." And this has been tested. You have to use their editor to publish in their enviroment. They're unable to let you see their product as part of a toolset, it has to be the whole thing. # You know how the AI companies are all doing browsers. Why don't they have a local url that I could put into an <a> element that pops up the result of a question asked of the chatbot. Something like this . When you click on the link you find out what the Mets did. # I'm o...

🔥 (240) Forcing a Component to Update, Creating an If...Else Component, and where do you put shared state?

图片
Read this on my blog Hey there! Another week, another newsletter. Enjoy! — Michael 🔥 Forcing a Component to Update What do you do if a component isn't updating the way it should? Likely, this is caused by a misunderstanding and misuse of the reactivity system. But let's look at a quick solution using forceUpdate : import { getCurrentInstance } from 'vue' ; const methodThatForcesUpdate = () => { // ... const instance = getCurrentInstance (); instance . proxy . forceUpdate (); // ... }; Using the Options API instead: export default { methods : { methodThatForcesUpdate () { // ... this . $forceUpdate (); // Notice we have to use a $ here // ... } } } Now, here comes the sledgehammer if the previous approach doesn't work. I do not recommend using this approach . However, sometimes you just need to get your code t...