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.

Is your feature request related to a problem? Please describe.

I can’t manage to find any way to type the props/data parameter which is currently unknown :

image

Describe the solution you’d like

It would be nice to provide a type generic parameter on createUseStyle to type data: unknown (in fact I can see in the code that it is left as a TODO)

Are you willing to implement it?

Yes, I’ll try to implement it !

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
kofcommented, Mar 1, 2021

I also think that it should be a generic, but I also haven’t tried to add one there to see if there are problems, so I encourage you to start a PR!

0reactions
kofcommented, Mar 14, 2021

Released in v10.6.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mounting Options | Vue Test Utils
Set the component instance's $attrs object. # propsData. type: Object. Set the component instance's props when the component is mounted. Example:.
Read more >
Setting props with propsData - Vue Testing Handbook
propsData can be used with both mount and shallowMount . It is often used to test components that receive props from their parent...
Read more >
How to Use Props in Vue.js - freeCodeCamp
To specify the type of prop you want to use in Vue, you will use an object ... If the type of the...
Read more >
Props - Vue Explanation
propsData is initialized as an object. Not only is it defined as a local variable, but also is deinfed on the vm.$options ....
Read more >
Vue propsData not updating dynamically - Stack Overflow
I pass the parent's data(the type attribute) as props both to the dynamically and statically created instances. When you insert a new button,...
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