Skip to content

Bug: Dictionary search engine not working correctly on initial load #47

@babblebey

Description

@babblebey

On the initial load of the web page, when a user tries to search for a word, it always returns "no result found." However, if the user navigates to another page on the website and then tries the search again, it works. This behavior might be due to the usage of state that gets set on the server-side (just realized 🤦) and doesn't reach the client on time.

Steps to Reproduce:

screencast-jargons-dev-git-feat-open-graph-babblebeys-projects.vercel.app-2024.04.19-10_30_54.webm

Proposed Solution:
Consider dropping the usage of the $dictionary state and compute the value for the Search island dictionary prop directly from the Astro.glob object.

Metadata

Metadata

Assignees

Labels

⬆️ high priorityThis issue needs to be addressed like yesterday🐛 bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions