Comments (3)
Right, this is indeed too restrictive. It ought to also allow the number
type, which would make it consistent with the types allowed on indexes in rxdb schemas.
from rxdb-hooks.
idAttribute
holds the name of an attribute which can only be a string. The type of the idAttribute
-as in, the type of data that attribute can hold in rxdb- is irrelevant and depends on your schema.
The TS error has to be caused by something else. Could you share some specifics or -even better- a fiddle?
from rxdb-hooks.
Apologies, I meant the second argument of the function:
function useRxDocument<T>(
collectionName: string,
id?: string,
options?: UseRxDocumentOptions
): RxDocumentRet<T>
so id
from rxdb-hooks.
Related Issues (20)
- types for database? HOT 1
- useRxData and component re-render HOT 5
- useRxData and component re-render HOT 2
- useRxCollection returns null the first time it is called? HOT 2
- useRxCollection does not support lazy collection initialization HOT 7
- Wrong paths in package.json HOT 2
- Database type doesn't match type expected by Provider HOT 2
- useRxData doesn't support findOne HOT 2
- useRxData doesn't support findByIds HOT 2
- Electron remote breaks hooks
- Is RXDB v12 supported? HOT 2
- Support RxDB 12
- How to handle multiple databases? HOT 2
- Question: useRXCollection not able to notice deletion and recreation of collection in one sitting HOT 1
- New functionality: collection.count HOT 1
- rxdb 13 breaks lazy collection creation HOT 1
- hooks stuck loading on local but work on production HOT 10
- useRxData doesn't return result and keeps fetching HOT 2
- How to combine multiple collection queries into a single hook?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rxdb-hooks.