Skip to content

Commit

Permalink
Merge pull request #174 from gqless/development
Browse files Browse the repository at this point in the history
react & core features added
  • Loading branch information
PabloSzx authored Apr 5, 2021
2 parents 5021c44 + da37f76 commit ad59aed
Show file tree
Hide file tree
Showing 93 changed files with 2,520 additions and 493 deletions.
5 changes: 5 additions & 0 deletions .changeset/big-ads-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'gqless': patch
---

fix selections backup & fix resolved false-positive warn
5 changes: 5 additions & 0 deletions .changeset/great-experts-relax.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@gqless/react': patch
---

add "usePaginatedQuery" hook
5 changes: 5 additions & 0 deletions .changeset/olive-seahorses-confess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@gqless/cli': patch
---

add "usePaginatedQuery" hook
5 changes: 5 additions & 0 deletions .changeset/spotty-bags-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'gqless': patch
---

add inlineResolved function
5 changes: 5 additions & 0 deletions .changeset/strong-ghosts-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'gqless': patch
---

remove normalizedCache from persistence
14 changes: 7 additions & 7 deletions docs/core/api/classes/gqlesserror.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ hide_title: true

#### Parameters:

| Name | Type |
| :--------------------------------- | :------------------------ |
| `message` | _string_ |
| `__namedParameters` | _object_ |
| `__namedParameters.caller?` | Function |
| `__namedParameters.graphQLErrors?` | readonly _GraphQLError_[] |
| `__namedParameters.otherError?` | _unknown_ |
| Name | Type | Default value |
| :--------------------------------- | :------------------------ | :------------ |
| `message` | _string_ | - |
| `__namedParameters` | _object_ | {} |
| `__namedParameters.caller?` | Function | - |
| `__namedParameters.graphQLErrors?` | readonly _GraphQLError_[] | - |
| `__namedParameters.otherError?` | _unknown_ | - |

**Returns:** [_gqlessError_](gqlesserror.md)

Expand Down
2 changes: 1 addition & 1 deletion docs/core/api/classes/selection.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Defined in: [packages/gqless/src/Selection/selection.ts:27](https://github.com/g

### cachePath

**cachePath**: readonly (_string_ \| _number_)[]
**cachePath**: readonly (_string_ \| _number_)[]= []

Defined in: [packages/gqless/src/Selection/selection.ts:31](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Selection/selection.ts#L31)

Expand Down
14 changes: 7 additions & 7 deletions docs/core/api/interfaces/clientoptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,52 +21,52 @@ hide_title: true

`Optional` **catchSelectionsTimeMS**: _number_

Defined in: [packages/gqless/src/Client/client.ts:116](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L116)
Defined in: [packages/gqless/src/Client/client.ts:117](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L117)

---

### normalization

`Optional` **normalization**: _boolean_ \| _NormalizationOptions_<ObjectTypesNames, SchemaObjectTypes\>

Defined in: [packages/gqless/src/Client/client.ts:118](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L118)
Defined in: [packages/gqless/src/Client/client.ts:119](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L119)

---

### queryFetcher

**queryFetcher**: [_QueryFetcher_](../modules.md#queryfetcher)

Defined in: [packages/gqless/src/Client/client.ts:115](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L115)
Defined in: [packages/gqless/src/Client/client.ts:116](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L116)

---

### retry

`Optional` **retry**: RetryOptions

Defined in: [packages/gqless/src/Client/client.ts:117](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L117)
Defined in: [packages/gqless/src/Client/client.ts:118](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L118)

---

### scalarsEnumsHash

**scalarsEnumsHash**: [_ScalarsEnumsHash_](../modules.md#scalarsenumshash)

Defined in: [packages/gqless/src/Client/client.ts:114](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L114)
Defined in: [packages/gqless/src/Client/client.ts:115](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L115)

---

### schema

**schema**: _Readonly_<[_Schema_](schema.md)\>

Defined in: [packages/gqless/src/Client/client.ts:113](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L113)
Defined in: [packages/gqless/src/Client/client.ts:114](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L114)

---

### subscriptionsClient

`Optional` **subscriptionsClient**: [_SubscriptionsClient_](subscriptionsclient.md)

Defined in: [packages/gqless/src/Client/client.ts:121](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L121)
Defined in: [packages/gqless/src/Client/client.ts:122](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L122)
46 changes: 27 additions & 19 deletions docs/core/api/interfaces/gqlessclient.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,151 +29,159 @@ hide_title: true

**accessorCache**: [_AccessorCache_](accessorcache.md)

Defined in: [packages/gqless/src/Client/client.ts:167](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L167)
Defined in: [packages/gqless/src/Client/client.ts:169](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L169)

---

### assignSelections

**assignSelections**: [_AssignSelections_](assignselections.md)

Defined in: [packages/gqless/src/Client/client.ts:173](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L173)
Defined in: [packages/gqless/src/Client/client.ts:175](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L175)

---

### buildAndFetchSelections

**buildAndFetchSelections**: [_BuildAndFetchSelections_](buildandfetchselections.md)

Defined in: [packages/gqless/src/Client/client.ts:168](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L168)
Defined in: [packages/gqless/src/Client/client.ts:170](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L170)

---

### buildSelection

**buildSelection**: [_BuildSelection_](buildselection.md)

Defined in: [packages/gqless/src/Client/client.ts:175](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L175)
Defined in: [packages/gqless/src/Client/client.ts:177](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L177)

---

### cache

**cache**: [_CacheType_](../modules.md#cachetype)

Defined in: [packages/gqless/src/Client/client.ts:163](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L163)
Defined in: [packages/gqless/src/Client/client.ts:165](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L165)

---

### eventHandler

**eventHandler**: [_EventHandler_](../classes/eventhandler.md)

Defined in: [packages/gqless/src/Client/client.ts:169](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L169)
Defined in: [packages/gqless/src/Client/client.ts:171](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L171)

---

### hydrateCache

**hydrateCache**: [_HydrateCache_](hydratecache.md)

Defined in: [packages/gqless/src/Client/client.ts:171](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L171)
Defined in: [packages/gqless/src/Client/client.ts:173](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L173)

---

### inlineResolved

**inlineResolved**: [_InlineResolved_](inlineresolved.md)

Defined in: [packages/gqless/src/Client/client.ts:164](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L164)

---

### interceptorManager

**interceptorManager**: [_InterceptorManager_](interceptormanager.md)

Defined in: [packages/gqless/src/Client/client.ts:164](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L164)
Defined in: [packages/gqless/src/Client/client.ts:166](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L166)

---

### mutate

**mutate**: [_Mutate_](mutate.md)<GeneratedSchema\>

Defined in: [packages/gqless/src/Client/client.ts:174](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L174)
Defined in: [packages/gqless/src/Client/client.ts:176](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L176)

---

### mutation

**mutation**: GeneratedSchema[*mutation*]

Defined in: [packages/gqless/src/Client/client.ts:160](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L160)
Defined in: [packages/gqless/src/Client/client.ts:161](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L161)

---

### prefetch

**prefetch**: [_Prefetch_](prefetch.md)<GeneratedSchema\>

Defined in: [packages/gqless/src/Client/client.ts:177](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L177)
Defined in: [packages/gqless/src/Client/client.ts:179](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L179)

---

### prepareRender

**prepareRender**: [_PrepareRender_](preparerender.md)

Defined in: [packages/gqless/src/Client/client.ts:172](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L172)
Defined in: [packages/gqless/src/Client/client.ts:174](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L174)

---

### query

**query**: GeneratedSchema[*query*]

Defined in: [packages/gqless/src/Client/client.ts:159](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L159)
Defined in: [packages/gqless/src/Client/client.ts:160](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L160)

---

### refetch

**refetch**: [_Refetch_](refetch.md)

Defined in: [packages/gqless/src/Client/client.ts:166](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L166)
Defined in: [packages/gqless/src/Client/client.ts:168](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L168)

---

### resolved

**resolved**: [_Resolved_](resolved.md)

Defined in: [packages/gqless/src/Client/client.ts:162](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L162)
Defined in: [packages/gqless/src/Client/client.ts:163](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L163)

---

### scheduler

**scheduler**: [_Scheduler_](scheduler.md)

Defined in: [packages/gqless/src/Client/client.ts:165](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L165)
Defined in: [packages/gqless/src/Client/client.ts:167](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L167)

---

### setCache

**setCache**: [_SetCache_](setcache.md)

Defined in: [packages/gqless/src/Client/client.ts:170](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L170)
Defined in: [packages/gqless/src/Client/client.ts:172](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L172)

---

### subscription

**subscription**: GeneratedSchema[*subscription*]

Defined in: [packages/gqless/src/Client/client.ts:161](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L161)
Defined in: [packages/gqless/src/Client/client.ts:162](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L162)

---

### subscriptionsClient

**subscriptionsClient**: _undefined_ \| [_SubscriptionsClient_](subscriptionsclient.md)

Defined in: [packages/gqless/src/Client/client.ts:176](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L176)
Defined in: [packages/gqless/src/Client/client.ts:178](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/client.ts#L178)

## Methods

Expand Down
30 changes: 30 additions & 0 deletions docs/core/api/interfaces/inlineresolved.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
id: 'inlineresolved'
title: 'Interface: InlineResolved'
sidebar_label: 'InlineResolved'
custom_edit_url: null
hide_title: true
---

# Interface: InlineResolved

## Callable

**InlineResolved**<TData\>(`fn`: () => TData, `options?`: [_InlineResolveOptions_](inlineresolveoptions.md)<TData\>): TData \| _Promise_<TData\>

#### Type parameters:

| Name | Default |
| :------ | :-------- |
| `TData` | _unknown_ |

#### Parameters:

| Name | Type |
| :--------- | :-------------------------------------------------------- |
| `fn` | () => TData |
| `options?` | [_InlineResolveOptions_](inlineresolveoptions.md)<TData\> |

**Returns:** TData \| _Promise_<TData\>

Defined in: [packages/gqless/src/Client/resolvers.ts:196](https://github.com/gqless/gqless/blob/master/packages/gqless/src/Client/resolvers.ts#L196)
Loading

1 comment on commit ad59aed

@vercel
Copy link

@vercel vercel bot commented on ad59aed Apr 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.