Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error on custom view page #1651

Open
cpolitano opened this issue Jul 23, 2024 · 8 comments
Open

error on custom view page #1651

cpolitano opened this issue Jul 23, 2024 · 8 comments
Assignees
Labels

Comments

@cpolitano
Copy link
Contributor

Viewing this recently-created custom view results in a blank page with errors in the console.

Screenshot 2024-07-23 at 2 17 54 PM
@tibetsprague
Copy link
Contributor

tibetsprague commented Jul 23, 2024 via email

@cpolitano
Copy link
Contributor Author

It does load now for me. But this is 100% a bug. I've seen it before. the first time a new view is created (this also happens with new chat channels) the page hits errors the first time someone tries to open it. In this Biofi case, it was reported by their community steward, so multiple people were experiencing it. It would be great to look into why this happens for new views.

@thomasgwatson
Copy link
Collaborator

If its only happening for a new thing, I would guess

  • new thing is created in client and updates local-state optimistically
  • that optimistic state needs something returned from the server or it actually is missing something
  • when the optimistic but bugged state is used, it breaks (in this case, looks like its trying to look up a label property on a null/undefined entity)
  • On reload, the server state (which is correct) is used instead and life is sweet and beautiful

@tibetsprague
Copy link
Contributor

tibetsprague commented Jul 24, 2024 via email

@thomasgwatson
Copy link
Collaborator

thomasgwatson commented Jul 24, 2024 via email

@thomasgwatson
Copy link
Collaborator

Actually, I'm having trouble replicating this at all, even when creating new custom views.

I've tried creating custom views and then navigating to them from the group menu...

@cpolitano , can you share the specific inputs from the custom view you created that was bugged? There might be some specific field that is not happy.

@cpolitano
Copy link
Contributor Author

It was a view setup to show all Request and Offers that are active. so nothing too crazy. if you look at the error it tells you the variable that is undefined on first load (that somehow later gets defined?)

@thomasgwatson
Copy link
Collaborator

The error tells us the property that was trying to be looked up on the undefined variable, not the variable itself. The property is label from the StreamViewControls. That gets looked up on the post type dropdown-selector. It doesn't give us a clear indication of why something is missing unfortunately.

I've tried recreating using those inputs and still no success in replicating. Can you detail the exact steps you take, in case there is something else that is missing from the recreation attempt? For example, after hitting save, I go to the group nav and select the custom view in question, to view it. Maybe you are accessing the custom view in a different way?

(this also happens with new chat channels)

Also, side-note, we did a fix for that months ago, as far as I can recall. Is it still happening?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants