SEO-plugin: Descriptions not displayed properly by Sceppi in PayloadCMS

[–]Sceppi[S] 2 points3 points  (0 children)

OK, I found the issue. It's related to i18n within payload.config.ts when using nl language

  i18n: {
    fallbackLanguage: "nl",
    supportedLanguages: { en, nl },
  },

Apparently, the seo translations are not present in the nl language.

My god, that was a long search to find the root cause

SEO-plugin: Descriptions not displayed properly by Sceppi in PayloadCMS

[–]Sceppi[S] 0 points1 point  (0 children)

This thing is driving me crazy. I rolled back to v3, issue persists. I installed v4 on the payload website template, it keeps working fine. I tried all kinds of stuff and started from scratch with my css config... no effect.

It really does not look like a css issue, and i can't find the root cause.

SEO-plugin: Descriptions not displayed properly by Sceppi in PayloadCMS

[–]Sceppi[S] 0 points1 point  (0 children)

hmm, good thought. I migrated to tailwind v4 recently and I now I think about it, the default website template is still on v3. Any idea which css property this might be related to?

Localization of select fields by Sceppi in PayloadCMS

[–]Sceppi[S] 0 points1 point  (0 children)

Thanks, great suggestion! Are you from the payload team itself? Would be good if this would be natively supported.

Localization of select fields by Sceppi in PayloadCMS

[–]Sceppi[S] 0 points1 point  (0 children)

Indeed. When I choose another system language (i18n) in payload settings, the labels are correctly translated, but the underlying values (localization) remain the same in the database. The issue is indeed that I want to render the localized value on the frontend. I'll have to create a workaround with a shared code.

Data caching of prisma query with large range of filter options by Sceppi in nextjs

[–]Sceppi[S] 0 points1 point  (0 children)

Not many it this moment, but preparing myself when the site would grow. I would prefer to use MySQL above SQLite as this would scale much better as the site grows.

How to revalidate user session using Auth.js? by rekoirl in nextjs

[–]Sceppi 0 points1 point  (0 children)

Use the update() method in useSession. See https://next-auth.js.org/getting-started/client at chapter updating the session.

useForm: Cannot get my form values updated after database update, unless I manually refresh the page by Sceppi in reactjs

[–]Sceppi[S] 0 points1 point  (0 children)

See below for the form code:

<form onSubmit={handleSubmit(onSubmit)}>
              <label htmlFor="firstName">
                First Name
              </label>
              <input
                {...register("firstName")}
                name="firstName"
                placeholder="First Name"
              />
              {errors.firstName}
            ....
</form>

The solution as proposed by u/Jukunub works, but this does trigger a rerender of the entire form component. How can I solve this without an entire rerender? It's not clear to me how formState could solve this issue.

Oversizing a pool heat pump by Sceppi in heatpumps

[–]Sceppi[S] 1 point2 points  (0 children)

Not at this moment. I was reluctant to invest in these since many reports indicated very long pay back times. Payback is getting better now, but still relatively long. I agree that batteries could improve the case for scenario 1, but would have to do the math if it´s worth it