Skip to content

Conversation

@karinevieira
Copy link
Contributor

@karinevieira karinevieira commented Feb 18, 2025

There is a glitch occurring during navigation between components. Whenever you hover over a link to another component page, the following error is rendered:

Uncaught (in promise) TypeError: map3.get is not a function

After some research, I found that changing the type attribute of the javascript_include_tag from defer to type resolves this issue. While this eliminates the error, the glitch persisted.

After further exploration, I followed Konnor Rogers's approach and updated the Turbo events used in the controller. Now, the navigation is smooth without any glitches. Here's a demo:

demo.mov

@stephannv
Copy link
Contributor

I added an issue to investigate the defer/module problem. #164

@stephannv stephannv merged commit 4ae84ff into ruby-ui:main Feb 18, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants