profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/phpsmarter/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

phpsmarter/21mobile 0

🎬 cinema 21 movie schedule app built with react native, graphql, redux

phpsmarter/30-days-of-react-native 0

30 days of React Native demos

phpsmarter/30-seconds-of-code 0

Curated collection of useful Javascript snippets that you can understand in 30 seconds or less.

phpsmarter/51kanmeiju 0

51kanmeiju

phpsmarter/AirBnb 0

An Airbnb Clone in React Native

phpsmarter/AlDente 0

MacOS tool to limit maximum charging percentage

phpsmarter/animation 0

Animate your React Native components

phpsmarter/aos 0

Animate on scroll library

issue closedapollographql/apollo-client

How to trigger resubscription using reactive variables?

Versions:

  "dependencies": {
    "@apollo/client": "^3.3.20",
    "graphql": "^15.5.0",
    ...
  }

I want to subscribe to a list filtered by user input, in react.

Use reactive variable to store the user input:

import { makeVar } from '@apollo/client'

export const searchVar = makeVar('')

function keyDown(event) {
  if (event.key === 'Enter') {
    searchVar(event.target.value)
  }
}

export default function Search() {
  return (
    <div className="w-full text-black cursor-pointer text-sm flex">
      <input
        type="search"
        name="search"
        onKeyDown={keyDown}
        placeholder="Find"
        className="flex-grow px-4 rounded-lg text-sm focus:outline-none"
      />  
    </div>
  )
}

Subscription with the reactive variable:

import { gql, useSubscription } from '@apollo/client'
import { searchVar } from './search'

const SUBSCRIPTION = gql`
  subscription Customers($searchStr: String!) {
    customer(
      limit: 10
      where: { name: {_ilike: $searchStr} }
    ) {
      name
      addr
    }
  }
`

export default function customers() {
  const { data, loading, error } = useSubscription(
    SUBSCRIPTION,
    {   
      variables: {
        searchStr: searchVar()
      },  
      shouldResubscribe: true,
    }   
  )
  ...
}

The subscription is expected to be resubscribed when users input something and press enter, but it doesn't work. I guess I'm using reactive variables or subscription in a wrong way.

closed time in 3 hours

ngugcx

issue commentapollographql/apollo-client

How to trigger resubscription using reactive variables?

Using useReactiveVar does the trick.

ngugcx

comment created time in 3 hours

push eventpubkey/rxdb

pubkey

commit sha b869bdfaf134d5579c48db278e686f8d4629a2ee

FIX stuff for CI

view details

push time in 8 hours

push eventpubkey/rxdb

pubkey

commit sha 11e4bca0a26d0d645ae38331628f13883eba3450

REFACTOR better event stream

view details

push time in 9 hours

issue openedapollographql/apollo-client

How to trigger resubscription using reactive variables?

I want to subscribe to a list filtered by user input, in react.

Use reactive variable to store the user input:

import { makeVar } from '@apollo/client'

export const searchVar = makeVar('')

function keyDown(event) {
  if (event.key === 'Enter') {
    searchVar(event.target.value)
  }
}

export default function Search() {
  return (
    <div className="w-full text-black cursor-pointer text-sm flex">
      <input
        type="search"
        name="search"
        onKeyDown={keyDown}
        placeholder="Find"
        className="flex-grow px-4 rounded-lg text-sm focus:outline-none"
      />  
    </div>
  )
}

Subscription with the reactive variable:

import { gql, useSubscription } from '@apollo/client'
import { searchVar } from './search'

const SUBSCRIPTION = gql`
  subscription Customers($searchStr: String!) {
    customer(
      limit: 10
      where: { name: {_ilike: $searchStr} }
    ) {
      name
      addr
    }
  }
`

export default function customers() {
  const { data, loading, error } = useSubscription(
    SUBSCRIPTION,
    {   
      variables: {
        searchStr: searchVar()
      },  
      shouldResubscribe: true,
    }   
  )
  ...
}

I expected the subsription will be resubscribed when user input something and press enter, but it didn't happen. I guess I'm using reactive variables in a wrong way.

created time in 9 hours

issue commentmoleculerjs/moleculer

Mixins with Typescript template & decorators way

@icebob, let me know if you are ok with me maintaining it.

Kamil93

comment created time in 10 hours

push eventpubkey/rxdb

pubkey

commit sha e8ab9869f00b61ea3e6f89c1e5a5f1b25e30fd15

CHORE use better event stream

view details

push time in 10 hours

issue openedapollographql/apollo-client

When cache is enabled, results of sub entities on different queries get overwritten

Hello, whenever the cache is enabled on the Apollo client, the results of "subqueries" on different parent queries get overwritten. In the screenshot you can see that the derivedETH price is different in pool.token0 and poolOld.token0 entities and with cache enabled they are the same (incorrectly). In the attachement is a minimal, reproducible example which should make everything clear.

image

Thank you, best regards, Jan

example.zip

created time in 11 hours

pull request commentapollographql/apollo-client

fix undefined issue with fetchMore and subscribeToMore

this problem still available, using with Nextjs Any news for this pr

guiananias

comment created time in 20 hours

push eventpubkey/rxdb

Renovate Bot

commit sha 0239ed83ea1b0a23701ea7839cf8113fa5f55acb

chore(deps): update dependency mocha to v9.0.1

view details

Renovate Bot

commit sha 13ca4460db0639a75ecaa01da4f6d05b2b29f20c

fix(deps): update expo monorepo

view details

push time in 21 hours

push eventpubkey/rxdb

Renovate Bot

commit sha 0239ed83ea1b0a23701ea7839cf8113fa5f55acb

chore(deps): update dependency mocha to v9.0.1

view details

Renovate Bot

commit sha 171d65a39696530087d22cf72e57e4e924b51ac3

fix(deps): update angular monorepo to v12

view details

push time in 21 hours

push eventpubkey/rxdb

Renovate Bot

commit sha 0239ed83ea1b0a23701ea7839cf8113fa5f55acb

chore(deps): update dependency mocha to v9.0.1

view details

Renovate Bot

commit sha 692d869f336c153aab7041973600a17cb80ef76b

chore(deps): update dependency webpack to v5

view details

push time in 21 hours

push eventpubkey/rxdb

Renovate Bot

commit sha 0239ed83ea1b0a23701ea7839cf8113fa5f55acb

chore(deps): update dependency mocha to v9.0.1

view details

Renovate Bot

commit sha f8b1a5d573a96af0add68339815aa9326aa78ea2

chore(deps): update dependency walk-sync to v3

view details

push time in 21 hours

push eventpubkey/rxdb

Renovate Bot

commit sha 0239ed83ea1b0a23701ea7839cf8113fa5f55acb

chore(deps): update dependency mocha to v9.0.1

view details

Renovate Bot

commit sha 5a3cf4007f7f8f6c831d3571654cb4caa8068fd9

chore(deps): update dependency terser-webpack-plugin to v5

view details

push time in 21 hours

push eventpubkey/rxdb

Renovate Bot

commit sha 0239ed83ea1b0a23701ea7839cf8113fa5f55acb

chore(deps): update dependency mocha to v9.0.1

view details

Renovate Bot

commit sha a7f18512507495dc8a76d2e56bc4a86719c7a022

chore(deps): update dependency less-loader to v10

view details

push time in 21 hours

push eventpubkey/rxdb

Renovate Bot

commit sha 0239ed83ea1b0a23701ea7839cf8113fa5f55acb

chore(deps): update dependency mocha to v9.0.1

view details

Renovate Bot

commit sha 3750db6e4c23dc0e3f107f7406d5f11413ba8f55

chore(deps): update dependency html-webpack-plugin to v5

view details

push time in 21 hours

push eventpubkey/rxdb

Renovate Bot

commit sha 0239ed83ea1b0a23701ea7839cf8113fa5f55acb

chore(deps): update dependency mocha to v9.0.1

view details

Renovate Bot

commit sha db408f3ab8cc1454ff4a0fd7386757e09553bbe2

chore(deps): update angularcli monorepo to v12

view details

push time in 21 hours

push eventpubkey/rxdb

Renovate Bot

commit sha 0239ed83ea1b0a23701ea7839cf8113fa5f55acb

chore(deps): update dependency mocha to v9.0.1

view details

Renovate Bot

commit sha d4141602fa43abf869926d50e6858cf9dbfec516

fix(deps): update node.js to v16.3.0

view details

push time in 21 hours

push eventpubkey/rxdb

Renovate Bot

commit sha 0239ed83ea1b0a23701ea7839cf8113fa5f55acb

chore(deps): update dependency mocha to v9.0.1

view details

Renovate Bot

commit sha 1985b25d6b7d9e767fc71eedc15456b7b8a30195

fix(deps): update dependency tslib to v2.3.0

view details

push time in 21 hours

push eventpubkey/rxdb

Renovate Bot

commit sha 0239ed83ea1b0a23701ea7839cf8113fa5f55acb

chore(deps): update dependency mocha to v9.0.1

view details

Renovate Bot

commit sha 9f4604da5979e85b73e2953d1a98995c06f39416

chore(deps): update dependency testcafe-hammerhead to v24.3.1

view details

push time in 21 hours

push eventpubkey/rxdb

Renovate Bot

commit sha 0239ed83ea1b0a23701ea7839cf8113fa5f55acb

chore(deps): update dependency mocha to v9.0.1

view details

Renovate Bot

commit sha d5687a9a504e5d7877503704dcf74e11b0854eb6

chore(deps): update dependency rollup to v2.52.1

view details

push time in 21 hours

push eventpubkey/rxdb

Renovate Bot

commit sha 0239ed83ea1b0a23701ea7839cf8113fa5f55acb

chore(deps): update dependency mocha to v9.0.1

view details

Renovate Bot

commit sha 7f283949a4c88dda4ea88e57b947bc3eeb7a263e

chore(deps): update dependency eslint to v7.29.0

view details

push time in 21 hours

push eventpubkey/rxdb

Renovate Bot

commit sha 0239ed83ea1b0a23701ea7839cf8113fa5f55acb

chore(deps): update dependency mocha to v9.0.1

view details

Renovate Bot

commit sha 36c353df36ccce85c41c78f228ce2143e3089e52

fix(deps): update dependency @nguniversal/express-engine to v12.0.2

view details

push time in 21 hours

push eventpubkey/rxdb

Renovate Bot

commit sha 0239ed83ea1b0a23701ea7839cf8113fa5f55acb

chore(deps): update dependency mocha to v9.0.1

view details

Renovate Bot

commit sha d8085c91666fcb8cd5c66eaad467768a3f750997

chore(deps): update dependency typescript to v4.3.4

view details

push time in 21 hours

delete branch pubkey/rxdb

delete branch : renovate/mocha-9.x

delete time in 21 hours

push eventpubkey/rxdb

Renovate Bot

commit sha 0239ed83ea1b0a23701ea7839cf8113fa5f55acb

chore(deps): update dependency mocha to v9.0.1

view details

push time in 21 hours

PR merged pubkey/rxdb

chore(deps): update dependency mocha to v9.0.1

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
mocha (source) 9.0.0 -> 9.0.1 age adoption passing confidence

Release Notes

<details> <summary>mochajs/mocha</summary>

v9.0.1

Compare Source

:nut_and_bolt: Other

We added a separate browser bundle mocha-es2018.js in javascript ES2018, as we skipped the transpilation down to ES5. This is an experimental step towards freezing Mocha's support of IE11.

</details>


Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box.

This PR has been generated by WhiteSource Renovate. View repository job log here.

+2 -2

0 comment

2 changed files

renovate[bot]

pr closed time in 21 hours

push eventapollographql/apollo-client

Renovate Bot

commit sha 63beb38db8811d071d5271112b6a978d4a1897dc

chore(deps): update dependency ts-invariant to ^0.8.0

view details

Renovate Bot

commit sha 6c6c89850a1983ab68ee543441c4149155bce09d

chore(deps): update dependency ts-jest to v27

view details

push time in 21 hours

push eventapollographql/apollo-client

Renovate Bot

commit sha 63beb38db8811d071d5271112b6a978d4a1897dc

chore(deps): update dependency ts-invariant to ^0.8.0

view details

Renovate Bot

commit sha 4604fefaac9a9c55fb9704f01f6ad2b976364b9d

chore(deps): update dependency serve to v12

view details

push time in 21 hours

push eventapollographql/apollo-client

Renovate Bot

commit sha 63beb38db8811d071d5271112b6a978d4a1897dc

chore(deps): update dependency ts-invariant to ^0.8.0

view details

Renovate Bot

commit sha 532055cfd885192d983e2d73403b93d0933cef1a

chore(deps): update dependency rxjs to v7

view details

push time in 21 hours