Ramiro Azar

Results 23 comments of Ramiro Azar

I'm hoping to achieve this as well. It would be nice to have paths reflect the URL structure already defined in WordPress where possible. I think your interpretation is correct,...

I have since attempted implementing this through WordPress, so just sharing my findings. A `link_relative` field can be added to responses using `register_rest_field`. `/parent-page/child-page/` Node fields can be used as...

Instead of using a string with parameters in the template `path` option, you can use a function, which allows you to get the full path. ``` WordPressPage: (node) => {...

In my case, I resolved this by always using the getters/setters within `useEffect` hooks or event listeners, like in this example. ``` const { cartTotal, items } = useCart() const...

Sorry, @FirasRihanSCMP, I meant to get back to you earlier. That looks right to me, it's pretty much how I've been approaching it. Is stringifying/parsing the items array necessary?

Looks like removing everything except `@tailwind base;` from `index.css` still works.

I was leveraging the above work around during development, but this doesn't work for builds. Since leaving just `@tailwind base;` in `index.css` kept HMR working and our project needs a...

After working with this some more, it seems that `useServerProps` is reserved for client components and that this is intended behaviour. I think it might be worth calling this out...

Interesting, I hadn't seen that announcement, thanks for sharing. Do you know if there's any plans to address this prior to version 2?

I agree, it needs to be reflected in the URL for a bunch of reasons, which seems more related to the framework. Is this at least worth resolving in the...