Recursive usage of component is not supported

Open
#770 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
elixir
Domain
compilers

Research direction

Start by reproducing the nested Links example, including the Links → OtherModule → Links case, and compare it with the documented .live_component workaround. The issue is resolved when recursive component usage compiles normally without silently failing or producing an unreadable missing-module error.

Written by the indexing model from the issue text.

Description

Compile fails silently (or even code keeps working), but when remove _build, you will get some totally unreadable error (module not available).

To bypass the issue, use .live_component and manually pass all the props.

Lets say you have Links with urls prop with link having sublinks. Either direct or Links -> OtherModule -> Links will fail.

Dominant language
Elixir
Stars
2.1k
Forks
146
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from surface-ui/surface

All issues in surface-ui/surface

Similar issues

More Elixir issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.