question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Documentation of component registration

See original GitHub issue

In the schema documentation about the component property it currently says (emphasis mine)

You can use the name of the component as a String instead, for example ‘FormText’, but be aware that the component needs to either be imported globally, or in your file first.

As a consequence, I tried to register the custom components locally in my component using formvuelate’s SchemaForm and identify the components to use by string (to get a green tick in the “code-free schema” column of my decision matrix) - which did not work.

This is somewhat expected (now) knowing that formvuelate merely is using vue’s :is special attribute and that, per the vue documentation (sic),

locally registered components are not also available in subcomponents

in vue 3.

The reference implementation featured in e.g. the “Validating Schema-Driven forms with Vuelidate” blog post also uses global registration.

So maybe the documentation should just suggest global registration. Or is there another way I’m missing?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
marina-mosticommented, Feb 23, 2021

@wiese ability to register local components has been added on v1.2.0 with #145 SchemaFormFactory docs

1reaction
marina-mosticommented, Feb 19, 2021

I’ve gone ahead and corrected/removed this bit from the docs until its addressed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Component registration - Knockout.js
Registering components as a viewmodel/template pair ... An array of DOM nodes; A document fragment; An AMD module whose value describes a template....
Read more >
Component Registration - Vue.js
There are two ways to register components: global and local. Global Registration #. We can make components available globally in the current Vue...
Read more >
Registering Components — Autofac 6.0.0 documentation
Registering Components ¶ · Registration Concepts · Reflection Components · Register by Type · Specifying a Constructor · Passing Parameters to Register ·...
Read more >
Component Registration
The Component Registration window displays the current components in the left pane and the field values of the selected component in the right...
Read more >
registerComponent() - Documentation - Apple Developer
Type Method. registerComponent(). Registers a new component type. iOS 13.0+ iPadOS 13.0+ macOS 10.15+ Mac Catalyst 13.0+. Declaration.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found