- React Native V 0.56 for Android
- Rails 5.1.3 API Only
My Rails app was able to persist session, but suddenly after upgrading React Native to 0.56 the Rails is creating a new session every time on each api request.
Unable to understand why the session is getting reset each time.
My application.rb looks like this
module AppService
class Application < Rails::Application
config.load_defaults 5.1
config.middleware.use ActionDispatch::Flash
config.middleware.use Rack::MethodOverride
config.middleware.use ActionDispatch::Cookies
config.api_only = true
config.middleware.use ActionDispatch::Session::CookieStore, key: '_namespace_key'
end
end
Can someone please point out what can be the issue? How can I debug this?
UPDATE Digging a bit deeper I came across this https://github.com/facebook/react-native/pull/19770
Seems like this is a bug with RN 0.56. Can someone please suggest how this can be solved?